How to draw cloud annotation inside polygon

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.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.

// polygon with the same vertices
pdftron.PDF.Annots.Polygon polygon = pdftron.PDF.Annots.Polygon.Create(doc, new Rect(161, 388, 700, 800));
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.

This is the same behaviour as other major PDF vendors.

If this is important for you then, the easiest way to accomplish what you want would be to adjust (shrink) the vertices so the lines are where you want.

Otherwise, you can always do your own custom appearance, but you would be starting from scratch in such a case, and using our ElementBuilder API.