All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

NextPrevUpTopContentsIndex

draw-metafile

Function
Summary

Draws a metafile to a pane.

Package

capi

Signature

draw-metafile pane metafile x y width height

Arguments

pane

An output-pane.

metafile

A metafile, as described in with-internal-metafile.

x , y

Integers.

width , height

Non-negative integers.

Description

The function draw-metafile draws the metafile metafile to the pane pane at position x , y with size width , height .

metafile should be a metafile as returned by with-internal-metafile.

The graphics-state parameters transform , mask and mask-transform affect how the metafile is drawn. The other graphics-state parameters are taken from the metafile.

Notes
  1. draw-metafile is supported on GTK+ only where Cairo is supported (GTK+ 2.8 and later).
  2. Metafiles look bad on GTK+, because they transform the image rather than the drawing.
  3. draw-metafile is not implemented on X11/Motif.
Examples
(example-edit-file "capi/graphics/metafile") (example-edit-file "capi/graphics/metafile-rotation")
See also

can-use-metafile-p
clipboard
draw-metafile-to-image
free-metafile
graphics-state
with-internal-metafile


CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex