ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Load PNG and save as BMP problem?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
BionicWave Posted - Aug 22 2011 : 05:02:46
I have an OpenGL window which i feed with BMP-files.
The original files are PNG´s. I load them with imageen and just save them with IO.SaveToFileBMP(filename).

My OpenGL application will load the files, but the format is somehow screwed up. The textures wont work.

If i load the PNG´s with imageen and copy them over to a TBitmap to save them my OpenGL app works as expected.

Did i miss a step. Actualy all i have to do is convert a PNG to a BMP.
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Aug 22 2011 : 05:06:26
Please show me how the BMP is displayed.
Also, maybe that OpenGL requires a particular BMP format, for example BGRA, instead of BGR?