chickadee » canvas-draw » make-canvas

(make-canvas [context context?] [data (or/c string? pointer?)]) -> canvas?procedure

Creates a new canvas with the given driver context. The data is context specific and is either a string describing the setup of the new canvas or a pointer to some native data object. e.g., to create a canvas from an iup canvas, use (make-canvas context:iup iup-canvas)