Hi Experts,
I am using the annotation polygon with e_Cloudy border style to draw cloud annotation. However, the default presentation of it is that the cloud was drawn outside the polygon. Is there any option which can control how the cloud border strokes the polygon, inside or outside?
Any reply will be appreciated. Thanks.
My sample code to draw the cloud polygon:
// cloud annotation
pdftron.PDF.Annots.Polygon cloud = pdftron.PDF.Annots.Polygon.Create(doc, new Rect(161, 388, 700, 800)); cloud.SetBorderEffect(pdftron.PDF.Annots.Markup.BorderEffect.e_Cloudy);
double size = 10;
cloud.SetBorderStyle(new Annot.BorderStyle(Annot.BorderStyle.Style.e_solid, size));
cloud.SetBorderEffectIntensity(size*0.4);
cloud.SetColor(new ColorPt(1, 0, 0));
cloud.SetVertex(0, new Point(161, 388));
cloud.SetVertex(1, new Point(600, 388));
cloud.SetVertex(2, new Point(600, 700));
cloud.SetVertex(3, new Point(161, 700));
cloud.SetVertex(4, new Point(161, 388));
//Add annotations to the page.
first_page.AnnotPushBack(cloud);
// polygon with the same vertices
pdftron.PDF.Annots.Polygon polygon = pdftron.PDF.Annots.Polygon.Create(doc, new Rect(161, 388, 700, 800));
polygon.SetBorderEffect(pdftron.PDF.Annots.Markup.BorderEffect.e_None);
polygon.SetBorderStyle(new Annot.BorderStyle(Annot.BorderStyle.Style.e_solid, 1));
polygon.SetColor(new ColorPt(0, 1, 0));
polygon.SetVertex(0, new Point(161, 388));
polygon.SetVertex(1, new Point(600, 388));
polygon.SetVertex(2, new Point(600, 700));
polygon.SetVertex(3, new Point(161, 700));
polygon.SetVertex(4, new Point(161, 388));
//Add annotations to the page.
first_page.AnnotPushBack(polygon);