protected override void OnDraw(Canvas canvas) { if (sticker == null) { return; } sticker.draw(canvas); float[] points = PointUtils.GetBitmapPoints(sticker.getSrcImage(), sticker.getMatrix()); float x1 = points[0]; float y1 = points[1]; float x2 = points[2]; float y2 = points[3]; float x3 = points[4]; float y3 = points[5]; float x4 = points[6]; float y4 = points[7]; if (isEdit) { canvas.DrawLine(x1, y1, x2, y2, paintEdge); canvas.DrawLine(x2, y2, x4, y4, paintEdge); canvas.DrawLine(x4, y4, x3, y3, paintEdge); canvas.DrawLine(x3, y3, x1, y1, paintEdge); rotateIcon.draw(canvas, x2, y2); zoomIcon.draw(canvas, x3, y3); removeIcon.draw(canvas, x1, y1); } }