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
 Add a filter over the layers

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
esprd Posted - Jul 15 2025 : 11:17:45
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 24 2025 : 15:47:47


Nigel
Xequte Software
www.imageen.com
esprd Posted - Jul 24 2025 : 11:02:59
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
xequte Posted - Jul 15 2025 : 21:13:26
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