pub unsafe extern "C" fn WebPPictureCrop(
picture: *mut WebPPicture,
left: c_int,
top: c_int,
width: c_int,
height: c_int,
) -> c_int
Expand description
self-crops a picture to the rectangle defined by top/left/width/height.
Returns false in case of memory allocation error, or if the rectangle is
outside of the source picture.
The rectangle for the view is defined by the top-left corner pixel
coordinates (left, top) as well as its width and height. This rectangle
must be fully be comprised inside the src
source picture. If the source
picture uses the YUV420 colorspace, the top and left coordinates will be
snapped to even values.