Author |
Topic  |
|
esprd

10 Posts |
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 |
|
xequte
    
39097 Posts |
|
esprd

10 Posts |
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
    
39097 Posts |
|
|
Topic  |
|
|
|