how do I apply gradient transparency explicitly to a SELECTION?
ImageEnView1.SetSelectedAreaAlpha does not allow gradient transparency.
It would be useful if ImageEnView1.IEBitmap.AlphaFill (even with gradient transparency) would be automatically applied to the selected area IF a selection exists (otherwise to the whole image)!
A workaround would be: 1. Copy the selection area to a temporary IEBitmap 2. Apply the gradient transparency to that temporary IEBitmap 3. Then copy the temporary IEBitmap back to the selection area
Isn't there already a built-in method to do this?
PeterPanino
Posted - Dec 09 2021 : 10:57:23 Hi Nigel,
Thanks!
IEBitmap.AlphaFill is a perfect solution, as it optionally supports even gradient transparency!
xequte
Posted - Dec 07 2021 : 13:29:41 You can use Layer[0].ConvertToImageLayer();
// Convert an image layer with 50% opacity to an image with 50% alpha ImageEnView1.LayersAdd( ielkImage ); TIEImageLayer( ImageEnView1.CurrentLayer ).Bitmap.Read( 'D:\MyImage.jpeg' ); ImageEnView1.CurrentLayer.Opacity := 0.50; ImageEnView1.CurrentLayer.ConvertToImageLayer();