This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Image loader class


Image loader class

Postby efortier » Jan 29, 2004 @ 7:53am

Hi all,

I've made an image loader and plan to release it for free, but I first need your help in testing it.

The purpose of the loader is to provide PocketHal users with a free and versatile loader. The main features are that it supports jpeg, png and bmp files without any dependencies on dlls or anything else. It works on PocketPC or desktop.

It can also correctly handle alpha channels in PNG and BMP files. For a list of all formats, see the formats.txt file in the zip file. And to conserve memory all images are loaded line by line, which requires very little space.

If anyone wants to help me, simply copy the content of the zip file to your ARM PPC. Place any images you have in the "Screens" directory and run the viewer.exe file.

Use the d-pad to move between images, use the stylus to move the image around, press button A to toggle the alpha channel on/off and button B to exit.

I included an image with alpha channel. Simply press button A to toggle it and see what it does. But I would like to know if it works with YOUR images in the formats I listed above. If it cannot load an image, you'll get a red screen.

Email any pictures that don't display properly or not at all to me and I'll fix the loader. Once Everything works as it should, I'll make it available in .LIB form. I already tested it with thousands of images, but my images are not your images.

If you use a format that is not listed, please let me know and I'll see what I can do.

Thanks, and any comments are welcome.

--Eric Fortier
efortier@techlogic.ca
Attachments
viewer.zip
(236.45 KiB) Downloaded 625 times
User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Re: Image loader class

Postby StephC » Jan 29, 2004 @ 9:11am

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby efortier » Jan 29, 2004 @ 10:17am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby StephC » Jan 29, 2004 @ 10:47am

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby Guest » Jan 30, 2004 @ 6:05am

Guest
 


Postby DillRye » Jan 30, 2004 @ 6:11am

User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby efortier » Jan 30, 2004 @ 7:57am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Re: Image loader class

Postby bluescrn » Jan 30, 2004 @ 10:40am

User avatar
bluescrn
pm Member
 
Posts: 107
Joined: Jul 6, 2003 @ 4:20pm
Location: Manchester, England


Postby Andy » Jan 30, 2004 @ 9:07pm

Andy
<font color=red size=3>Troll++</font>
 
Posts: 1288
Joined: Nov 1, 2003 @ 7:36am


Re: Image loader class

Postby StephC » Jan 30, 2004 @ 9:50pm

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby efortier » Jan 30, 2004 @ 10:05pm

Thanks a lot for trying this test viewer.

I'm currently using 0.5.

Here's an updated viewier. Now, here is what it will do:

If Initialize() fails, it will quit immediately. Evidently, there's not much I can do about it.

If GetBackBuffer() or Swap() fails, the screen will stay black but the viewer won't quit. Press button B to quit.

If all goes well with PHAL but the viewer cannot find the images in the Screen directory, the screen will turn blue and a message will be shown.

If while trying to load an image the surface cannot be created correctly, the screen will turn green.

And if all is fine with the above but an image cannot be loaded correctly, the screen will be red with the name of the image displayed.

I hope you can try this new one and report your findings.

Thanks!

--Eric
Attachments
viewer2.zip
new version of the viewer only.
(95.2 KiB) Downloaded 514 times
User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby Andy » Jan 30, 2004 @ 11:30pm

Andy
<font color=red size=3>Troll++</font>
 
Posts: 1288
Joined: Nov 1, 2003 @ 7:36am


Postby StephC » Jan 30, 2004 @ 11:47pm

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Re: Image loader class

Postby bluescrn » Jan 31, 2004 @ 12:53am

User avatar
bluescrn
pm Member
 
Posts: 107
Joined: Jul 6, 2003 @ 4:20pm
Location: Manchester, England


Postby denthorq » Jan 31, 2004 @ 1:15am

It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Next

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron