The width x height rectangle with its top left corner at (x, y). Not ok when any part of it is outside the image or it is empty.
crop :: (
image: Image,
x: s32,
y: s32,
width: s32,
height: s32
) -> (Image, ok: bool)
The width x height rectangle with its top left corner at (x, y). Not ok when any part of it is outside the image or it is empty.
Parameters
- image: Image
- x: s32
- y: s32
- width: s32
- height: s32
Returns
- ok: bool