Freeing graphics contexts
Graphics contexts are released using freeGC. Your application is responsible for freeing the graphics contexts it creates. Graphics contexts can be freed at any time, but cannot be used for drawing after being freed.
| gc |
gc := CgWindow default
createGC: None
values: nil.
"Perform some drawing operations using the gc..."
gc freeGC.
 
Tip:
Do not attempt to free the default GC. This can cause unpredictable behavior.
Last modified date: 01/29/2015