javascript - in kinetic js fill element(shape) with image -
I'm making different shapes within the canvas inside Kainet. I put the image in size, but not able to resize the image inside the shape. Users will give X, Y, Height and Width input of the image. Then the given size image will be sized in size.
Due to low reputation, I can not insert images here. You can easily see that you have understood my question
This is my code sample
$ (img) .load (function () {blueCircle.fillPatternImage (img); blueCircle FillPatternOffset ({X: 100, y: 105}); layer.draw ();}); Img.src = ""; Yngksrk = "Actiteepi://wwwkfusemobilekcomkaw/vp-kantent/uploads/20ll/ll/mobail-soshl-netvrk-300x225kjpg";
You fillPatternScale (scale) to Scale you can use, for example: $ (img) .load (function (to) {blueCircle.fillPatternImage (img); blueCircle.fillPatternOffset ({x: 150, y: 105}) ; Bluearch FillPatternScale ({x: 0.4, y: 0.4}); layer.draw ();});
Comments
Post a Comment