On this page:
DC
DC.width
DC.height
DC.size
DC.handle
DC.from_  handle
0.45+9.1.0.1

4.1 Generic Drawing Context🔗ℹ

interface

interface draw.DC

Represents a drawing context that renders to some destination, such as a bitmap or the screen.

One way to get a drawing context is Bitmap.make_dc.

See Drawing Operations for most methods of DC.

property

property (dc :: draw.DC).width :: NonnegReal

 

property

property (dc :: draw.DC).height :: NonnegReal

 

property

property (dc :: draw.DC).size :: Size

The size of the drawing area: width, height, or both.

property

property (dc :: draw.DC).handle :: Any

 

function

fun draw.DC.from_handle(hand :: Any) :: DC

The DC.handle property returns a Racket object that corresponds to the drawing context for use directly with racket/draw. The DC.from_handle function creates a DC from such a Racket object.