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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Load PNG and save as BMP problem?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

BionicWave

Germany
33 Posts

Posted - Aug 22 2011 :  05:02:46  Show Profile  Reply
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.

fab

1310 Posts

Posted - Aug 22 2011 :  05:06:26  Show Profile  Reply
Please show me how the BMP is displayed.
Also, maybe that OpenGL requires a particular BMP format, for example BGRA, instead of BGR?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: