SetupBitmap

Graphics32

TCustomImage32.SetupBitmap

procedure SetupBitmap(
  DoClear: Boolean = False;
  ClearColor: TColor32 = $FF000000);

Description

Sets the size of the bitmap image to the size of the buffered area. This method does not account for current ScaleMode.

If DoClear = True, the resized image will be filled with a color specified in the ClearColor parameter.

See Also

Bitmap Image, TCustomPaintBox32.GetViewportRect, ScaleMode, TColor32