Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, August 30, 2005 10:50:30 AM(UTC)
jclements

Groups: Registered
Posts: 12


I am trying to export to DWF but I need to take advantage of the hollow
polylines instead of solid polylines.  Has anyone found a way to do this?

I am currently using the API (DLL) version of LeadTools 14 Vector.  Thank you!
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, September 5, 2005 4:51:41 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 356


The LEADTOOLS Vector toolkit support saving polygons and polylines in DWF files. What exactly do you mean by hollow polylines?

Amin Dodin
LEADTOOLS Technical Support

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Wednesday, September 7, 2005 9:29:42 AM(UTC)
jclements

Groups: Registered
Posts: 12


 Amin wrote:The LEADTOOLS Vector toolkit support saving polygons
and polylines in DWF files. What exactly do you mean by hollow polylines?


When I convert my vector data to DWF (or SVG for that matter) polygons,
when viewed in AutoDesk's DWF Viewer (or Adobe's SVG viewer) the
polygons are completed filled in with black, what I have read is
referred to as a solid polygon.  What I want is for the polygon to not be filled, a hollow polygon.


In talking with Travis in LeadTools support, he told me I should be
able to specify the brush type and make it hollow, which I am doing I
believe, but it is not working, so was curious as to why.  I am setting the brush with the following code:

              T.Brush.nSize := SizeOf(VECTORBRUSH);
              T.Brush.VectorBrushStyle := VECTORBRUSH_STANDARD;

              T.Brush.StandardBrush.LogicalBrush.lbStyle := BS_HOLLOW;

 
#4 Posted : Wednesday, September 14, 2005 12:29:44 PM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 356


I added the following C code to our DLL Vector Demo after the call to L_VecDlgNewObject:
if (VECTOR_POLYGON == nType)
{
   VECTORPOLYGON T;
   L_VecGetObject(pData->pVector, &Object, VECTOR_POLYGON, &T);
   T.Brush.nSize = sizeof(VECTORBRUSH);
   T.Brush.VectorBrushStyle = VECTORBRUSH_STANDARD;
   T.Brush.BrushType.StandardBrush.LogBrush.lbStyle = BS_HOLLOW;
   L_VecSetObject(pData->pVector, &Object, VECTOR_POLYGON, &T);
   MessageBox(hWnd, "Modified to become transparent", "Test Hollow", MB_OK);
}


I added a rectangle and polygon objects and made each of them solid in
a different brush color. I saved 2 copies of the drawing as SVG, one of
them with this code enabled and another without it. I'm attaching these file here.

Amin Dodin

LEADTOOLS Technical Support
File Attachment(s):
PolygonSVG.zip (2kb) downloaded 33 time(s).
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#5 Posted : Thursday, September 22, 2005 9:51:11 AM(UTC)
jclements

Groups: Registered
Posts: 12


Thank you, that did solve that problem!  In Delphi's case the syntax/naming is slightly different but still works:

<VECTOROBJECT>.Brush.StandardBrush.LogicalBrush.lbStyle := BS_HOLLOW;
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.067 seconds.