TBaseLuminanceSource.crop Method

Definition

Returns a new object with cropped image data. Implementations may keep a reference to the original data rather than a copy. Only callable if CropSupported is true.

Delphi
function crop(const left: Integer; const top: Integer; const width: Integer; const height: Integer): TLuminanceSource

Parameters

left
Integer

The left coordinate, which must be in [0, Width)

top
Integer

The top coordinate, which must be in [0, Height)

width
Integer

The width of the rectangle to crop.

height
Integer

The height of the rectangle to crop.

Returns

TLuminanceSource

A cropped version of this object.