60002180 EdgeColor cannot be reset in Wrapper

Article 60002180
Type Wish
Product Engine
Date Added 4/29/2014 12:00:00 AM
Fixed (4/29/2014 12:00:00 AM)
Submitted by Giovanni Sava

Summary

EdgeColor cannot be reset in Wrapper

Solution

In the VDF Wrapper component a new property is exported in vdViewport and in vdLayout named EdgeColor (long). If this is set to 0 then the value of the EdgeColor changes to Color.Empty (default value) so the edges get the same color as the object.

This value has the form in HEX: AARRGGBB where AA is the alpha blending byte and it is ignored during render except when all 4 bytes are 0; in this case the edges get the same color as the object. Some sample code :

VDraw.ActiveDocument.ActiveLayout.EdgeColor = &Hff00ff00 ' in delphi is $ff00ff00 // Sets the EdgeColor to Green
VDraw.ActiveDocument.ActiveLayout.EdgeColor = &H00000000 ' in delphi is $0000000 // Sets the EdgeColor to none, edges are rendered using the objects color

Send comments on this topic.