procedure SetupBitmap(
DoClear: Boolean = False;
ClearColor: TColor32
= $FF000000);
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.