ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Add a filter over the layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

esprd

10 Posts

Posted - Jul 15 2025 :  11:17:45  Show Profile  Reply
Hi,

I need to add a monochrome semi-transparent layer, to have a kind of coloured filter over the whole picture. In some cases my picture is made of two layers, the upper one being semi-transparent.

I though about adding a shape layer type rectangle, the rectangle having the same size as the picture itself, and set layer opacity = 0.7.

It does what I need, but is there a better way to have this ?

ep

xequte

39097 Posts

Posted - Jul 15 2025 :  21:13:26  Show Profile  Reply
Hi

Not quite seeing what you're trying to do here, but it sounds like your other option is a mask layer:

http://www.imageen.com/help/TIELayer.IsMask.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

esprd

10 Posts

Posted - Jul 24 2025 :  11:02:59  Show Profile  Reply
Sorry for not being clear enough.

Mask is not what I need, but I found the solution :
- create a layer over the background
ImageEnView.LayersAdd(ImageEnView.Layers[0].Kind,
ImageEnView.Layers[0].PosX,
ImageEnView.Layers[0].PosY,
ImageEnView.Layers[0].Width,
ImageEnView.Layers[0].Height) ;

- fill with a color (that what I was searching)
ImageEnView.Layers[1].Bitmap.FillRect( 0, 0, ImageEnView.Layers[0].Width, ImageEnView.Layers[0].Height, clBlack ) ; // Or any color

- Set layer's transparency
imgSample.Layers[1].Opacity := 0.8


ep
Go to Top of Page

xequte

39097 Posts

Posted - Jul 24 2025 :  15:47:47  Show Profile  Reply


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: