Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Saving Bitmap failed error when trying to export a image in the IDE

I have a TImage, which has its own subcomponent MultiResBitmap which also has a "0 – Normal" subcomponent. When accessing the Bitmap Editor of the 3rd component and using the "Save" option, I am prompted to select a location in which to save the file. After entering that I’m given a "Saving Bitmap failed" error.

I tried extracting the needed image from the programs resource file, but it did not show anything except the programs icon when using Resource Hacker

How can extract that image?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

try this maybe it will work

Image1.MultiResBitmap[0].Bitmap.SaveToFile('delphi_img.png');
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading