Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 11th August 2004, 03:26 PM
PompeyBlue's Avatar
PompeyBlue Offline
Registered User
 
Join Date: Jun 2004
Location: Portsmouth, UK
Posts: 444
libpng.so and reading .png images

Ok,

This is mega specialist, so I won't expect any replies, but I'll ask anyway

So if I use KPaint and examine a .png image it reports it's stats as:

128x128 24bpp

However, if I then use libpng.so to load this (using the sample code) and then look at the header (info_ptr) it reports:

width: 128 (fine)
height: 128 (fine)
rowbytes: 384 (fine i.e. 128 * 3 = 384)
bit_depth: 8 (what ? I thought it was 24bpp or 3 bytes)
valid: 32768 (I presume this is unpacked size which seems to small since 128 * 3 * 128 = 49152)

Has anybody used this before ? Maybe the .png I'm reading is fine, it's just when I try and texture with it using opengl it's colours are all washed out and it's at 45 degrees.
Reply With Quote
 

Tags
images, libpngso, png, reading

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help rpm install libpng aloneattack Installation and Live Media 2 9th July 2007 05:23 PM
zlib/libpng license GPL compatible? Conquistador Linux Chat 2 11th January 2006 11:11 PM
problema with libpng and libpng-dev karthikeyan Using Fedora 1 25th August 2005 11:54 AM
libpng.so.3 missing Knudson Using Fedora 5 19th July 2005 07:22 PM


Current GMT-time: 01:17 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat