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
 Saved BMP image has defect

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
PeterPanino Posted - Sep 16 2014 : 11:05:00
Hi! I have a TImage on a form and a TImageEnIO component attached to it. I load a .BMP image from a file (which has nice colors) and make some work with it. After this the picture in the TImage still looks great. Then I save the image to a .BMP file with ImageEnIO.SaveToFile(Image.bmp); (I have also tried ImageEnIO.SaveToFileBMP). But the saved BMP file has ugly lines on it and the colors are destroyed:



I repeat: The image on the form looks great and does not have this defect. When I save to a PNG or any other format then the saved image does NOT have any defect.

Does somebody recognize this pattern or this defect and could give me a hint what is going wrong here? Thank you for your help!
2   L A T E S T    R E P L I E S    (Newest First)
PeterPanino Posted - Sep 16 2014 : 14:39:50
Thank you Bill, that was it!!!! This forum is really amazing!!
w2m Posted - Sep 16 2014 : 11:14:59
Usually when this occurs the image is not 24 bit, so try setting the picture's bitmap pixelformat to 24 bit after opening it.
Image1.Picture.Bitmap.PixelFormat = pf24bit;



Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development