Forum Xamarin.Forms


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

help, I need to draw regtangles in an image

acejack15acejack15 Member ✭✭

Greetings friends. I am working on a project where I have the need to draw rectangles in an image to identify objects detected in that image, I have an example that does this but in window.forms and using the System.Drawing but in xamarin.forms I can not use it. some method to draw rectangles in an image or can you provide me with an example or documentation, if there is any way to use the System.Drawing in xamarin.forms? , thank you very much


  • AlmaJensen.9398AlmaJensen.9398 USMember ✭✭✭

    Is your project a .net standard or pcl. Pretty much all of system.drawing wasn't available in PCL the last time I tried. I'm not sure if it made it to .netstandard. All image manipulation work I've done in the past required platform specific code.

  • acejack15acejack15 Member ✭✭

    it's a .NET project

  • acejack15acejack15 Member ✭✭

    and I'm using .Netstandard

  • SirAndriySirAndriy USMember ✭✭✭

    Hi, you can use SkiaSharp or you can put under Image BoxView (user RelativeLayout or Grid)

  • acejack15acejack15 Member ✭✭

    @SirAndriy you can explain to me a bit more about Boxview is that I'm new and the SkiaSharp option I do not understand how to use the image as a canvas to be able to place the rectangles

Sign In or Register to comment.