How to draw on image


#1

I found the Drawing Pad Plugin for help me to draw shape in nativescript. But i don’t know how to use it to draw on image
I tried put drawingpad inside Image but it doesn’t work. Anyone can help me?


#2

hello, anyone can help me ?


#3

A nice trick you can use to overlay two layout elements on top of each other is using <GridLayout> and give both sub-layouts the same row and col index (or leave them out entirely). Example:

  <GridLayout>
    <Image src="~/background.png" height="600" />
    <DrawingPad ... />
  </GridLayout>

#4

thanks @Eddy for helping me. because drawing pad is rectangle so i means how to draw only on inside image not outside.