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
 ImageEnView with transparent background

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
fender75 Posted - Jan 22 2019 : 03:12:48
Hi,

I'm just starting with ImageEn and I'd like to test it for some overlays in Delphi.

I'd like to have an ImageEnView with a loaded image, but I'd like to have another ImageEnView on the top, with a .png file on it. This new png will work as a layer and I'd need the second ImageEnView has a transparent background. That way I can see the first imageEnView

I'm trying to do it, but I'm pretty new to ImageEn

thanks so much


I
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 22 2019 : 23:33:57
A TImageEnView is not a transparent control, so if you stack them you won't be able to see the underlying one.

It sounds like you need to use layers, i.e. a background image layer, and a transparent layer on top.

e.g.

// Load background image
ImageEnView1.IO.LoadFromFile( 'C:\Background.jpg' );

// Add an image layer
ImageEnView1.LayersAdd( ielkImage );

// Load image into the current layer
ImageEnView1.IO.LoadFromFile( 'C:\Transparent.png' );


Please also try the demos under:

\Demos\LayerEditing\Layers_Images\Layers.dpr


Nigel
Xequte Software
www.imageen.com