getting Hight and Width of a PNG file
im using SDL and i get a debbuging error at this line if(Counter*90 >= I_Skill->w) and this is what I_Skill = I_Skill = IMG_Load("foo.PNG"); Im just wondering if there is a way of getting a PNG h and w or if you can and there is somthing else wrong in my code (if so tell me so that i can look other places) thanks [grin]
____________________________"This just in, 9 out of 10 americans agree that 1 out of 10 americans will disagree with the other 9"- Colin Mochrie
it says segmention fault and im pretty sure it not == NULL its gotta do with the file type because when i switch it to BMP it works fine
EDIT: hmm now it works fine hmm ok that was wierd whatever [Looksaround]
[Edited by - raptorstrike on December 20, 2004 8:19:55 AM]
EDIT: hmm now it works fine hmm ok that was wierd whatever [Looksaround]
[Edited by - raptorstrike on December 20, 2004 8:19:55 AM]
____________________________"This just in, 9 out of 10 americans agree that 1 out of 10 americans will disagree with the other 9"- Colin Mochrie
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement