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; |