How to use libpng?

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

Moderators: cheriff, TyRaNiD

Post Reply
soulphalanx
Posts: 35
Joined: Mon Aug 22, 2005 7:48 am

How to use libpng?

Post by soulphalanx »

how do you use libpng to blit png files?
can someone write some code to show how?
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Re: How to use libpng?

Post by Shine »

Take a look in the screenshot directory, which has a sample to save a screenshot and to blit a PNG file for the PSP.
soulphalanx
Posts: 35
Joined: Mon Aug 22, 2005 7:48 am

Post by soulphalanx »

is there a way to blit it to a certain coordinate?
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

soulphalanx wrote:is there a way to blit it to a certain coordinate?
Yes. But you should consider using Lua Player or the SDL library, if you can't change the C code to blit to a certain coordinate.
Post Reply