CanvasIO.intersectCrop

Crop the area to fit. Unlike setting cropArea, this will not replace the old area, but create an intersection between the new and old area.

interface CanvasIO
final nothrow
Optional!Rectangle
intersectCrop

Parameters

rectangle Rectangle

New crop region.

Return Value

Type: Optional!Rectangle

The old region for later restoration.

Meta