How to draw a box in an image? RRS feed

  • Question

  • User366798 posted

    Hello, I'm working on an app that detects objects of interest in an image thanks to a server API I have the coordinates of the box that encloses the object of interest. My question is is there a simple way to draw that box in the image using the coordinates that I have already? and how would it be done?

    Sunday, April 22, 2018 9:17 PM

All replies

  • User171749 posted

    You could create a Grid and use layering. If you add an item to a Grid one after the other it layers on top of the other elements.

    CSHARP Grid example = new Grid { Children = { image, new BoxView { BackgroundColor = Color.Red, TranslationY = coords[0].y, TranslationX = coords[0].x } }

    Monday, April 23, 2018 7:29 AM