Image lib for JPG, PNG and BMP support?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
darkness
Posts: 121
Joined: Sun Jun 15, 2008 8:42 pm

Image lib for JPG, PNG and BMP support?

Post by darkness »

Hi,
I'm working on a Image viewer, I've try to use SDL but it has a lot of problems, so I've decided to use another lib to bli images but I don't know other libraries!
I've think to use a library like the graphics.h ( that use sceGu ), but with that I cannot resize images, so what lib can I use?
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

try the tri library it's a very cool library
use svn to checkout here is the url to the site

http://trac2.assembla.com/openTRI
darkness
Posts: 121
Joined: Sun Jun 15, 2008 8:42 pm

Post by darkness »

I'm using a win32 sdk and I've no subversion installed, can you post a link?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

darkness wrote:I'm using a win32 sdk and I've no subversion installed, can you post a link?
http://tortoisesvn.net/downloads

There you go! :)
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Use the graphics.c & graphics.h from the LUAPlayer source code.
It uses the GU so it should be fast enough.

As for resizing, just Google for some resize code and resize the image yourself.

The Image->data structure points to the ARGB image.
The size of the ARGB data is Image->textureWidth * Image->textureHeight * sizeof(Color)
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

There's no magic wand in graphics, expecially if you want it to be accelerated. So, use complex libraries when you really need it, and you know well what you're doing. To do a few blits use GU/GE headers and the ton of examples provided with pspsdk.
Post Reply