how do you return png width & height?

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

Moderators: cheriff, TyRaNiD

Locked
User avatar
Hale
Posts: 9
Joined: Sat Apr 29, 2006 4:17 pm
Location: Gainesville, FL
Contact:

how do you return png width & height?

Post by Hale »

I'm looking for a function in png.h that'll return the dimensions of a .png image. I'd really appreciate any examples or links to some =)
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Check out this link:

http://www.libpng.org/pub/png/book/chapter13.html

Particularly png_get_IHDR.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

RTFM for libpng.
Shoot Pixels Not People!
Makeshift Development
Locked