StopDrawing()
Syntax
StopDrawing()Description
Once all the needed graphics operations (started with StartDrawing()) have been performed, this function must be called to finish the drawing and free all associated resources.
Parameters
None.
Return value
None.
Example
If OpenWindow(0, 0, 0, 200, 200, "2DDrawing Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) If CreateImage(0, 200, 200) If StartDrawing(ImageOutput(0)) Box(50, 50, 50, 50, RGB(255, 0, 0)) ; Further drawing operation goes there ; and then don't forget to call StopDrawing() to finish 2D rendering StopDrawing() EndIf EndIf ; Display the picture ImageGadget(0, 0, 0, 200, 200, ImageID(0)) EndIf
See Also
StartDrawing()
Supported OS
All