Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
AndyColmes
Posted - Nov 03 2011 : 08:17:13 I know I can adjust the transparency for a layer, but can I restrict it only to a selection if a selection exists?
4 L A T E S T R E P L I E S (Newest First)
AndyColmes
Posted - Nov 08 2011 : 08:45:40 Thanks Fabrizio. I will give it a try.
fab
Posted - Nov 08 2011 : 00:49:03 The demo at ImageEditing\Layers shows several layer related features (included layer mask). About the way nr.2, just execute the code shown.
AndyColmes
Posted - Nov 07 2011 : 12:01:09 Thanks Fabrizio. Do you have a demo project on how this is done? I am not sure how to create a layer mask using the bitmap.
fab
Posted - Nov 04 2011 : 07:24:48 There are two ways: 1 - create a layer mask (a 8 bit gray scale bitmap which specifies the upper layer transparency, pixel by pixel) 2 - change the alpha channel of the bitmap
For example (2):
// set transparency of selected area = 50
ImageEnView1.SetSelectedAreaAlpha(50);