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
 Save image after changing channel offset

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
zhengyuanyi27 Posted - Apr 29 2021 : 06:20:38
I loaded one image into Imageenvect1 and changed the channel offset of Imageenvect1, such as set the red channel to 0 using the following codes:
ImageEnVect1.IEBitmap.ChannelOffset[0] := 0;

Then I saved the image using the following codes:
imageenvect1.IO.SaveToFile('d:\1.jpg' );
While I found the saved image (1.jpg) still keep the red channel.

Then I tried the following code which still didn't work.
imageenvect1.IEBitmap.CopyToTBitmap(imageenvect2.Bitmap);
imageenvect2.IO.SaveToFile('d:\1.jpg' )

Could somebody tell me how to save an image with changed channel offset?

Thanks a lot!
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 29 2021 : 19:24:09
Yes, that is the correct way:

https://www.imageen.com/help/TIEBitmap.ChannelOffset.html
https://www.imageen.com/help/TIEBitmap.Contrast.html

Nigel
Xequte Software
www.imageen.com
zhengyuanyi27 Posted - Apr 29 2021 : 11:07:58
I figure it out by adding the following codes:
ImageEnvect1.IEBitmap.FixChannelOffset;
ImageEnvect1.IEBitmap.FixContrast;