Page 1 of 2

Image loader class

PostPosted: Jan 29, 2004 @ 7:53am
by efortier
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

Re: Image loader class

PostPosted: Jan 29, 2004 @ 9:11am
by StephC

PostPosted: Jan 29, 2004 @ 10:17am
by efortier

PostPosted: Jan 29, 2004 @ 10:47am
by StephC

PostPosted: Jan 30, 2004 @ 6:05am
by Guest

PostPosted: Jan 30, 2004 @ 6:11am
by DillRye

PostPosted: Jan 30, 2004 @ 7:57am
by efortier

Re: Image loader class

PostPosted: Jan 30, 2004 @ 10:40am
by bluescrn

PostPosted: Jan 30, 2004 @ 9:07pm
by Andy

Re: Image loader class

PostPosted: Jan 30, 2004 @ 9:50pm
by StephC

PostPosted: Jan 30, 2004 @ 10:05pm
by efortier
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

PostPosted: Jan 30, 2004 @ 11:30pm
by Andy

PostPosted: Jan 30, 2004 @ 11:47pm
by StephC

Re: Image loader class

PostPosted: Jan 31, 2004 @ 12:53am
by bluescrn

PostPosted: Jan 31, 2004 @ 1:15am
by denthorq