Creates an off-screen surface.
Form 1:
void __fastcall RecreateOffScreen(int width, int height);
Form 2:
void __fastcall RecreateOffScreen(int width, int height, bool transparent, int color = 0);
Description
Use RecreateOffScreen to recreate an off-screen surface. Do not call RecreateOffScreen if you haven't created your surface yet.
Use Form 1 to delete the current surface and recreate it with new width and height properties. Use Form 2 to delete the current surface and recreate it with new width, height, transparent, and transparent color properties.