- load image and render it to canvas and set it to the buttom of the layout
- draw a Cover
- draw crop rectangle with the ratio and clean the rectangle style
- draw BorderCircles
- set the cursor to pointer when mouse move over the rectangle
- drag the rectangle
- fix #6 BUG, it will jump to the first postion for beginning when drag the rectangle
- the mouse will be default to pointer when dragging the rectangle
- set mouse when cursor is in the renderBorderCirclor
- reszie the rectangle
option | describe |
---|---|
width | canvas width |
height | canvas height |
ratio | crop rectangle ratio |
padding | padding between canvas and image |
It can crop for any size