| View previous topic :: View next topic |
| Author |
Message |
darkness
Joined: 15 Jun 2008 Posts: 121
|
Posted: Sun Aug 10, 2008 1:47 am Post subject: Image lib for JPG, PNG and BMP support? |
|
|
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? |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Sun Aug 10, 2008 3:37 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
darkness
Joined: 15 Jun 2008 Posts: 121
|
Posted: Sun Aug 10, 2008 6:20 am Post subject: |
|
|
| I'm using a win32 sdk and I've no subversion installed, can you post a link? |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun Aug 10, 2008 6:56 am Post subject: |
|
|
| 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! :) |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Aug 10, 2008 3:10 pm Post subject: |
|
|
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) |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Sun Aug 10, 2008 7:12 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|