Hello,
I am creating a polygon from some data, and then using the textstyle of the layer to label it. I would like to put the label above (or maybe below) the polygon using YOffsetInPixel. How can I find the top or bottom-most pixel location of the polygon?
Thanks,
Dib
Get top-most pixel on a polygon
Think I got it. Ended up using the bounding box of the polygon
Dim rShape As RectangleShape = layerFlood.InternalFeatures(0).GetBoundingBox
Dim top As Decimal = Math.Min(rShape.UpperLeftPoint.Y, rShape.UpperRightPoint.Y)
Dim left As Decimal = Math.Min(rShape.UpperLeftPoint.X, rShape.LowerLeftPoint.X)
Hi Dib,
Glad to hear you figure it out.
Any questions, don’t hesitate to let us know.
Thanks,
Troy