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
 Bakground Layer Color?

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
PeterPanino Posted - Oct 18 2022 : 06:10:25
The demo \Demos\LayerEditing\Layers_AllTypes shows how to add end edit specific Layers.

Unfortunately, it is not possible to edit the COLOR of the BACKGROUND LAYER (the color of the background behind -not around- the image) - despite I have set ImageEnView.BackgroundStyle = iebsSolid at design-time.

I need a Background Layer that has a solid color and fills the whole ImageEnView area - especially the area behind the image, so when areas of the image are alpha-transparent then that color shines through. Is this possible?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 18 2022 : 18:16:43
Hi

ImageEnView.BackgroundStyle does not set the style of the layer 0 (i.e. the "Background" layer), it sets the styling behind layer 0. So the image of layer 0 will generally obscure it, so to see a solid background behind your layers, do one of the following:

1. Set layer 0 to minimum size:

ImageEnView1.Blank();

2. Make layer 0 full transparent:

ImageEnView1.Layers[0].Bitmap.AlphaChannel.AlphaFill( 0 );
ImageEnView1.Update();

3. Make layer 0 the size of the window and fill it:

ImageEnView1.Layers[0].Bitmap.Allocate( ImageEnView1.ClientWidth, ImageEnView1.ClientHeight, clRed );
ImageEnView1.Update();

Nigel
Xequte Software
www.imageen.com