LEADTOOLS Support
Imaging
Imaging SDK Questions
How to make AnnPointObject Semi(Partial) Transparent
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 22, 2011 2:14:38 AM(UTC)
Groups: Registered
Posts: 20
Hi,
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);
_view.PrpAnnAutomation.Container.Objects.Add(fixPoint);
_view.PrpAnnAutomation.Viewer.Invalidate();
////////////////////////////////////////////////
Thanks in advance
#2
Posted
:
Wednesday, November 23, 2011 5:54:01 AM(UTC)
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:
http://www.leadtools.com/help/leadtools/v175/dh/wn/Leadtools.Windows.Annotations~Leadtools.Windows.Annotations.AnnPicture.html
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.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Imaging
Imaging SDK Questions
How to make AnnPointObject Semi(Partial) Transparent
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.