In the backgroud i have image,Here I need to draw a rectangle using specific coordinates (they come from API)on a image. How to draw dynamically because coordinates keep changing.
I have tried using canvas, svg but dind't work. Link for previous question How to draw svg on image?
cordinates:
var a = _self.sendObjCoordinates[0].coordinates.xmin;
var b = _self.sendObjCoordinates[0].coordinates.ymin;
var c = _self.sendObjCoordinates[0].coordinates.xmax;
var d = _self.sendObjCoordinates[0].coordinates.ymax;
sample values:
{xmin: 399, ymin: 191, xmax: 1166, ymax: 742}