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
 TIELineLayer... border problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Aug 22 2017 :  09:54:01  Show Profile  Reply
Hi,
i have testet with the Example from Imageen Forum "Native Layers2"
Follow i have found.
When i change TIELineLayer(ImageEnView1.CurrentLayer).BorderColor
then it's change the Linecolor.
When i change TIELineLayer(ImageEnView1.CurrentLayer).BorderWidth
then it's change the Linewidth.
When i set the Bordercolor = clnone
then no change, the Border is visible.
When i set Borderwidth = 0 then the Line not more visible.
I hope you can clarify this.
I cant not set the Border on not visible.
Not with Borderwidth=0 and not with Bordercolor=clnone.
The green border from the drawlayerbox its ever to see ?



Klaus
www.klausdoege.de

xequte

39052 Posts

Posted - Aug 22 2017 :  17:19:06  Show Profile  Reply
Hi Klaus

BorderColor and BorderWidth are just shortcut properties:

https://www.imageen.com/help/TIELayer.BorderColor.html


For TIELineLayer, you should be using its specific properties, such as

TIELineLayer.LineColor
TIELineLayer.LineWidth
TIELineLayer.LabelBorderColor
TIELineLayer.LabelBorderWidth

https://www.imageen.com/help/TIELineLayer.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Aug 26 2017 :  04:03:46  Show Profile  Reply
Hi Nigel,
Labelborder was the good tip, thank you.
I have still one question.
TIEImageLayer (ImageEnView1.CurrentLayer) .ExecuteOpenDialog ();
How do I get the filename from the above call?
I would like to insert it here.
Example:
ImageEnView1.Layers [iLayer] .Name: = opendialog.Filename;

Best regards
Klaus

Klaus
www.klausdoege.de
Go to Top of Page

xequte

39052 Posts

Posted - Aug 27 2017 :  22:54:50  Show Profile  Reply
Hi Klaus

Here is an example:

// Prompt user to load new image into current image layer and log the result
if TIEImageLayer( ImageEnView1.CurrentLayer ).ExecuteOpenDialog() then
  AddToLog( format( 'Loaded image into layer %d: %s', [ ImageEnView1.LayersCurrent, TIEImageLayer( ImageEnView1.CurrentLayer ).Bitmap.Filename ]));




Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Aug 30 2017 :  09:56:53  Show Profile  Reply
Hi Nigel,
thank you this is what i search.

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: