Programmatically Clip/Cut image using Javascript

后端 未结 8 1858
[愿得一人]
[愿得一人] 2020-12-12 17:57

Are there any documents/tutorials on how to clip or cut a large image so that the user only sees a small portion of this image? Let\'s say the source image is 10 frames of

8条回答
  •  一整个雨季
    2020-12-12 18:08

    try use haxcv library haxcv js by simple functions

    go to https://docs.haxcv.org/Methods/cutImage to read more about his library

    var Pixels = _("img").cutImage (x , y , width , height  );
    

    _("img").src (Pixels.src);

    // return cut image but try to include library first

提交回复
热议问题