Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

TMUNA - Photo viewer for the Device

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2009, 07:29 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default TMUNA - Photo viewer for the Device

TMUNA is using the new JPEG library by Agraham, so the limitation of size of the picture is removed because the program loads only a thumbnail, not the whole picture.
The operation is simple, the buttons functions from left to right:
- load single picture
- open a directory of pictures, without showing their thumbnails (its faster...)
- open a directory, with thumbnails (this may take a while)
- reset - re-draws the whole picture on the screen
- zoom out - works only after you zoomed in...
- zoom in
- Previous picture (only when a directory is opened and there is a list)
- next picture (only when a directory is opened and there is a list)
- show list (only when a directory is opened and there is a list)
- about

Joystick can be used To Do the previous-Next operations.

The last directory visited is stored for the next time.

The first zoom in step is from the whole picture displayed to the narrow dimension displayed fully on the screen. The step may be large or small - according to the size of the margin.
The following steps are of 1.25 each.

After rotation of 90 degrees, there is a need to increase the size * 1.12, ask Agraham why...(I don't know).

The program is intended for use in the device (not recomended to rotate the desktop screen). I found that there is different behaviour of jpeg.LoadAreaThumbnail on the desktop and on the device - on the desktop it allows to select area outside of the image, on the device it takes only area which is on the image. This is the reason for the complex sub form1_mouseup.

Please note that few libraries are not integrated into the compiled application, so remember to put them with the application. The images directory is required only for the compilation phase.

Many thanks to Erel, Agraham, Filippo and Ariel for the tools used here and for the continuous support !!!

I expect comments and suggestions, please !
David Erez.

Edit: Tmuna1.sbp added , syncronizes the list selected item and changing photo with the arrows.
Also I forgot to write that tapping the mouse moves the point of tapping to the center, or as much as possible without having blank margins.

Edit: version 1.1 , sliding the finger or stylus horizontally or vertically on the screen will change to next or previous picture, like the green arrows or the hardkeys.

edit: Version 1.3 - correction of list items update to show the last selected.
- arrows deleted, since their task is done by stylus movement.
- Addition of imageEdit library with three functions - brightness, contrast and saturation, operated with "E" button on the toolbar.

Edit: Version 1.4 - includes sorting of the photo array by the first letter and if equal - by the last. Also a bug correction.
Edit: Version 1.41 - a slight correction - the "Edit" controls are reset to default when a new photo is displayed.
Attached Images
File Type: jpg tmuna1.jpg (50.1 KB, 115 views)
File Type: jpg tmuna2.jpg (45.0 KB, 77 views)
File Type: jpg tmuna3.jpg (38.5 KB, 49 views)
Attached Files
File Type: zip Tmuna1.41.zip (44.2 KB, 81 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 03-12-2010 at 10:36 AM.
Reply With Quote
  #2 (permalink)  
Old 12-14-2009, 08:16 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello Mr. Derez

I sure will give this a try. Thank you very much for posting the open source.
And you are using the blist.dll library thats a very nice component.

We will let you know how it works. I do find this very usefull.

Best regards, and a Merry Xmas and happy new Year to you!

William
Reply With Quote
  #3 (permalink)  
Old 12-14-2009, 08:56 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

at first try at the App on the Desktop, I get two little error msgs. Whats up ?
This happens when I try to open a Jpeg Image.
Compiling for Device then also gives another error. fgcontrols are installed, on the desktop.

What do you think Mr. Derez?

Last edited by wm.chatman : 12-14-2009 at 09:15 PM.
Reply With Quote
  #4 (permalink)  
Old 12-14-2009, 09:30 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi William,

The program works fine for me on the desktop and also the compiling.
I'm afraid that you don't have all the required libraries in the default library folder of B4PPC or at least the latest versions.
You should make shure to load the latest versions and try again.

Good luck and best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #5 (permalink)  
Old 12-14-2009, 09:43 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Klaus

Nice to hear from you Klaus.

yes, you are right! I did not have the newest library Version 1.086 from the fgControls.
Now it does at least work on the desktop, but compiling to device I still get this little error msg.

Congratulations Klaus to your earned contributors Medal. You really disserved that for all the contributions and the help you give others. Respect Sir!

I wish you and your Fam. a very nice Merry Xmas, and a Happy New Year!
Und natuerlich gesundheit.

Best regards

William

Last edited by wm.chatman : 12-14-2009 at 10:06 PM.
Reply With Quote
  #6 (permalink)  
Old 12-15-2009, 06:46 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

William

Please check again that you have the latest and all dll's, check by the attached compilation message.

Also for the device you have to put JPEGator.jpeg.dll in the device , read about it in the jpeg library help.

and btw - it is Chanuka for us jews, not Xmas, but thanks anyway
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #7 (permalink)  
Old 12-15-2009, 09:40 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by derez View Post
After rotation of 90 degrees, there is a need to increase the size * 1.12, ask Agraham why...(I don't know).
I don't know why either . BitmapEx.RotateRight doesn't change the image size, you can see this by checking the BitmapEx Width and Height before and after rotation. I think this is a side-effect of something else.

Quote:
I found that there is different behaviour of jpeg.LoadAreaThumbnail on the desktop and on the device - on the desktop it allows to select area outside of the image, on the device it takes only area which is on the image. This is the reason for the complex sub form1_mouseup.
I don't think this is to do with LoadAreaThumbnail as that just returns an ordinary bitmap. I think you may have found an Image control or Form control difference between the desktop and device.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #8 (permalink)  
Old 12-15-2009, 01:25 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Dir derez

You wrote: Also for the device you have to put JPEGator.jpeg.dll in the device.
Where do I find the JPEGator.jpeg.dll ? That one, I do not have. Never mind, I got it. What do I need to download?
Will also check again that I have the latest and all the dll's needed, up to date.
Thanks much derez.

As for the xmas matter, then a happy Chanuka to you and the Fam.

Best regards
William

Last edited by wm.chatman : 12-15-2009 at 08:29 PM. Reason: removed link
Reply With Quote
  #9 (permalink)  
Old 12-15-2009, 02:37 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by wm.chatman View Post
I Downloaded the trial version of JPEGator.
Do not use the trial version of JPEGator. Please download the Basic4ppc library http://www.basic4ppc.com/forum/addit...es-device.html and read the licensing conditions in the help file.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #10 (permalink)  
Old 12-15-2009, 02:38 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

The JPEGator.jpeg.dll library is included in agraham's zip file, so you don't need to look somewhere else.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLite Viewer Erel Open Source Projects 5 11-15-2008 08:12 AM
Out of Memory when loading a photo Mr_Gee Questions (Windows Mobile) 6 10-23-2008 08:49 PM
Photo Picker? Offbeatmammal Questions (Windows Mobile) 0 06-02-2008 05:16 AM
Photo display program with smooth control Frank Share Your Creations 3 01-14-2008 03:56 PM
Text/Pic Viewer scott93727 Share Your Creations 0 05-02-2007 06:28 AM


All times are GMT. The time now is 03:04 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0