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
 How to create an empty layer.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Dennis445a

Canada
30 Posts

Posted - Nov 03 2026 :  13:09:03  Show Profile  Reply
I am probly missing it in the docs.

How can I create an empty layer or a blank layer that I can use for brush strokes or as an adjustment layer.

And two other question.

With TIELayerProps under the style tab and with softshadows, would it be possible to add a color button to set the shadow color (I can do this seperatly but a nice to have option)?

I also noticed that if you have a ellipsis magnification layer and add a border it adds it as a box and not around the ellipis.

Thanks for your help.

dm

xequte

39597 Posts

Posted - Nov 04 2026 :  00:11:40  Show Profile  Reply
Hi Dennis

A blank layer is just an unfilled image layer, so you can use ImageEnView1.LayersAdd(); or ImageEnView1.LayersAdd( 800, 600 );

http://www.imageen.com/help/TImageEnView.LayersAdd.html

I have added Soft Shadow color support to TIELayerProps dialog in the current beta. Also a circular selection shape for elliptical magnification layers.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Dennis445a

Canada
30 Posts

Posted - Nov 04 2026 :  12:05:25  Show Profile  Reply
Thanks Nigel

dm
Go to Top of Page

Dennis445a

Canada
30 Posts

Posted - Nov 05 2026 :  10:02:14  Show Profile  Reply
So when using CaptureView.LayersAdd(); it adds a layer but fills it with a color. I suspect it's the default background color. I am able to create a layer with no fill color using ImageEnMView and that works properly.

And one other question is there any plans for booleen support in the future (Add, Subtract, Combine shape layers)?

Thanks again.

dm
Go to Top of Page

xequte

39597 Posts

Posted - Nov 09 2026 :  13:59:32  Show Profile  Reply
That could be possible. I'm just not sure how the feature could be surfaced (e.g. combine all layers in the same group??). Do you have any ideas for that?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Dennis445a

Canada
30 Posts

Posted - Nov 09 2026 :  19:25:28  Show Profile  Reply
I did a couple of methods, one at a transparent layer however that went different then I expected, I know that the default color of the base layer is the same as the fill on the empty layer. So I have put that on hold until I finish some other features. As far as booleans I am trying a few thing as cut and merge layers but it's not a prioraty (Yet). So far it seams to be at the ordering and choosing the first layer as the base and top layers as cut layers. still working out the combine as it needs to rebuild the line points and keep the fill. And to think it all started as a basic screen capture tool. On another note in RichEdit the CaptureRE.SelAttributes.Color := FontColorREBtn.SelectedColor; doesn't work but CaptureRE.SelAttributes.BackColor := FontColorREBtn.SelectedColor; does.

dm
Go to Top of Page

Dennis445a

Canada
30 Posts

Posted - Nov 09 2026 :  19:29:42  Show Profile  Reply
Also, you did a great job with this component lib, I am finding new ways to use it. Sometimes I write a routine just find out you have an easier way for me to do it. for example found this yesterday "DeleteSelectedImages;" I was handling it code and now I don't have to.

dm
Go to Top of Page

xequte

39597 Posts

Posted - Nov 09 2026 :  21:11:04  Show Profile  Reply
Thanks Dennis

Regarding adding blank layers, remember that you can just edit the layer bitmap like any other layer:

// Add a that is red and 50% transparent
ImageEnView1.LayersAdd( ielkImage, 100, 100, 500, 500 );
bmp := TIEImageLayer( ImageEnView1.CurrentLayer ).Fill( clRed, 128 );

I'm not seeing the RichEdit issue you mention. Does this work for you:

  if Editor.SelLength > 0 then
    Editor.SelAttributes.Color := btnFontColor.SelectedColor;
  else
    Editor.DefAttributes.Color := btnFontColor.SelectedColor;


I'll look at layer merging for a later release.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Dennis445a

Canada
30 Posts

Posted - Nov 10 2026 :  11:37:43  Show Profile  Reply
I tried this " if Editor.SelLength > 0 then
Editor.SelAttributes.Color := btnFontColor.SelectedColor;
else
Editor.DefAttributes.Color := btnFontColor.SelectedColor;"

So it tested it with TRichEdit and it work's and Tested it with LMDRichEdit and it works but for some reason with ImageEn RichEdit it doesn't work. It's okay for now as I decieded that its's a seperated project for later. I will let you know what I figure out for boolean stuff.

dm
Go to Top of Page

xequte

39597 Posts

Posted - Nov 10 2026 :  16:30:26  Show Profile  Reply
I've added a Text Color button to the IERichEdit demo, so please test it in that after the next release (v15.5.1).

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: