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



Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, November 22, 2011 2:14:38 AM(UTC)

Groups: Registered
Posts: 20

I am using LeadTools 17.5 with C#.Net. I have a raster file and i want to draw an AnnPointObject( with picture) as this will semi transparent so that my raster file and annotation will be visible and AnnPointObject(with picture) should be semi visible. my code is as follows:

CurvePolyLine CurvePolyLine = _view.PolyLineDrawDesigner.ObjectTemplate as CurvePolyLine;
                AnnPointObject fixPoint = new AnnPointObject();
                fixPoint.Name = "PointShift";
                fixPoint.NameVisible = false;
                fixPoint.Picture = new AnnPicture(global::TGSDig.Windows.FormsControl.Properties.Resources.Red_box_3px);
                List<AnnObject> annObjects = GetAllCurveDataFromPrepInfo(CurvePolyLine.SegmentNo, CurvePolyLine.TrackNo, CurvePolyLine.CurveIndex);
                fixPoint.CenterPoint = new AnnPoint(CurvePolyLine.PickedPoints[0].X, CurvePolyLine.PickedPoints[0].Y);
               (annObjects[0])).PickedPoints[0].X, ((CurvePolyLine)(annObjects[0])).PickedPoints[0].Y);



Thanks in advance


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 : Wednesday, November 23, 2011 5:54:01 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

You can specify a specific color to be fully transparent by setting the AnnPicture.TransparentMode property to AnnPictureTransparentMode.UseColor and then set the AnnPicture.TransparentColor property to the color that you want.
For more information, please see this page:

About the semi transparent issue, there could be a workaround. Please send this issue to support@leadtools.com so that I can investigate more about this issue.

Maen Badwan
LEADTOOLS Technical Support
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-2023, Yet Another Forum.NET
This page was generated in 0.044 seconds.