14 Rendering
parameter
(dc-for-text-size) → (or/c #f (is-a?/c dc<%>))
(dc-for-text-size dc) → void? dc : (or/c #f (is-a?/c dc<%>))
The drawing context installed in this parameter need not be the same as the ultimate drawing context, but it should measure text in the same way. Under normal circumstances, font metrics are the same for all drawing contexts, so the default value of dc-for-text-size is a bitmap-dc% that draws to a 1-by-1 bitmap.
parameter
→ (list/c (>=/c 0) (>=/c 0) (>=/c 0) (>=/c 0)) (convert-bounds-padding padding) → void? padding : (list/c (>=/c 0) (>=/c 0) (>=/c 0) (>=/c 0))
Added in version 1.2 of package pict-lib.
procedure
(pict->bitmap pict [smoothing]) → (is-a?/c bitmap%)
pict : pict? smoothing : (or/c 'unsmoothed 'smoothed 'aligned) = 'aligned
When drawing the pict into the bitmap using the smoothing mode smoothing (see dc<%> for more information on smoothing modes).
procedure
(pict->argb-pixels pict [smoothing]) → bytes?
pict : pict? smoothing : (or/c 'unsmoothed 'smoothed 'aligned) = 'aligned
Examples: | ||||||||
|
Added in version 1.1 of package pict-lib.
procedure
(argb-pixels->pict bytes width) → pict?
bytes : bytes? width : exact-nonnegative-integer?
Example: | |||||||||||
|
Added in version 1.1 of package pict-lib.
procedure
(show-pict pict [ w h] #:frame-x frame-x #:frame-y frame-y #:frame-style frame-style) → void? pict : pict? w : (or/c #f exact-nonnegative-integer?) = #f h : (or/c #f exact-nonnegative-integer?) = #f frame-x : (or/c (integer-in -10000 10000) #f) frame-y : (or/c (integer-in -10000 10000) #f)
frame-style :
(listof (or/c 'no-resize-border 'no-caption 'no-system-menu 'hide-menu-bar 'toolbar-button 'float 'metal))
parameter
(current-expected-text-scale scales) → void? scales : (list/c real? real?)