Skip to main content

TdxCustomFastDIB.Resize(TRect) Method

Changes the bitmap buffer’s size.

Declaration

procedure Resize(const R: TRect); overload;

Parameters

Name Type
R TRect

Remarks

Call either of the overloaded procedure variants to change the Width and Height property values. This operation always discards the current buffer content and recreates the DIB image buffer if the resulting area size is positive (that is, the Empty function returns True).

The first overloaded Resize procedure variant accepts new pixel dimensions as the AWidth and AHeight parameters. The second variant accepts a rectangle as the R parameter and uses its Width and Height property values as dimensions.

See Also