ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView with transparent background
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

fender75

10 Posts

Posted - Jan 22 2019 :  03:12:48  Show Profile  Reply
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

xequte

38613 Posts

Posted - Jan 22 2019 :  23:33:57  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: