procedure InitializeSurface(NewWidth, NewHeight: Integer; ClearBuffer: Boolean); virtual; abstract;
Initializes the surface with the dimensions of NewWidth x NewHeight both measured in pixels. Each pixel has to be 4 byte (ARGB) in size. The allocated memory has to be contiguous with the stride being the length of NewWidth. GR32 currently does not support stride lengths different from the width of the new surface. The pointer to the allocated memory has to be written to the protected member FBits.
The ClearBuffer parameter determines whether clearing the buffer is required or not.
This method is called internally by the default ChangeSize method implementation of TBackend.
New back-end classes need to implement this method to do their internal allocation of memory for the surface.
TBackend, ChangeSize, FinalizeSurface
Copyright ©2000-2016 Alex Denisov and the Graphics32 Team - Graphics32 v2.0 - Built on 25-April-2017