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
 border color not updating
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - Dec 26 2018 :  09:55:24  Show Profile  Reply
In my code or in the layer demo, the bordercolor does not update when you apply it or increase its size
UpDownBorderWidth.Position := TrackBarLayerBorderWidth.Position;
ImageEnView.CurrentLayer.BorderWidth := TrackBarLayerBorderWidth.Position;
ImageEnView.Update();

So, i enable the bordercolor, but nothing shows. i increase its size, nothing shows. then i move the later or rotate it and suddenly it shows.

Advice ?
Thanks

xequte

38499 Posts

Posted - Dec 26 2018 :  21:19:28  Show Profile  Reply
Hi

I cannot reproduce that. Are you saying it happens on on our compiled layers demo too:

https://www.imageen.com/demos/

What version of Delphi are you on? What type of layer is it?




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

pierrotsc

USA
497 Posts

Posted - Dec 28 2018 :  08:33:01  Show Profile  Reply
Nigel, i am using the latest imageen, windows 10 and berlin. Look at the screenshot. you can see that i have a red border with a big size and nothing is showing. my code acts the same and I also use Bill's brushtool demo. Bill says it works with his demo but not on my computer. Not sure if it is a video driver issue. when i ove the layer, the border appears and then i can decresae its size or increase.

Go to Top of Page

w2m

USA
1990 Posts

Posted - Dec 28 2018 :  08:57:23  Show Profile  Reply
Add a layer and then it will work. You can not change the Background layer border color or width.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38499 Posts

Posted - Dec 28 2018 :  14:28:02  Show Profile  Reply
Sorry, Bill is correct. Borders aren't valid for the background layer unless they are offset (i.e. treated like a layer).

I'll improve the documentation.

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

pierrotsc

USA
497 Posts

Posted - Dec 30 2018 :  14:10:42  Show Profile  Reply
Well, not really. if you add a border to a background, it does not show but if after that you rotate the background layer or just move it after you unlock it, the border shows up.
Go to Top of Page

xequte

38499 Posts

Posted - Jan 02 2019 :  13:51:18  Show Profile  Reply
Hi

Yes, any action that puts it into "layer mode" enables the layer properties. Even settings its PosX to a non-zero value should be sufficient.

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

pierrotsc

USA
497 Posts

Posted - Jan 02 2019 :  14:14:12  Show Profile  Reply
Nice, i will try to add some code i guess to move the layer back and forth a pixel to have the border appear
Go to Top of Page

xequte

38499 Posts

Posted - Jan 03 2019 :  22:11:30  Show Profile  Reply
Yes, I'll see if we can devise are more standard way once we are back in the office.

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

xequte

38499 Posts

Posted - Jan 08 2019 :  21:10:15  Show Profile  Reply
FYI, in 8.3.0, it will always render the borders.

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

pierrotsc

USA
497 Posts

Posted - Jan 09 2019 :  08:41:32  Show Profile  Reply
awesome..thank you
Go to Top of Page

MarcoG

USA
1 Posts

Posted - Jan 09 2019 :  09:40:20  Show Profile  Reply
Hi Nigel, what's rendering the borders going to do for the images? Sorry for the newbie question.
Go to Top of Page

xequte

38499 Posts

Posted - Jan 09 2019 :  17:37:58  Show Profile  Reply
Hi

It is only a layer option, so the image is not affected in any way (just drawn over it). In fact if you save to any format other than ImageEn's native IEN format, the border will be lost.


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