1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Windows Interface Reference: Metafile structure</title>
</head>
<body>
<h1>Metafile </h1>
<p>The Metafile structure contains functions and structures to create and operate on
metafiles. A metafile is essentially a recording of drawing operations which can be stored
in a file, passed through the clipboard and replayed as needed. There are two types
of metafile: the old form represented by the HMETAFILE type and the new, enhanced
metafile, represented by the HENHMETAFILE type.</p>
<pre>structure Metafile :
sig
type HENHMETAFILE
type HMETAFILE
type HDC
type RECT = { top: int, left: int, bottom: int, right: int }
type SIZE = { cx: int, cy: int }
datatype MapMode = datatype Transform.MapMode
type METAFILEPICT = {mm: MapMode, size: SIZE, hMF: HMETAFILE}
type ENHMETAHEADER =
{
bounds: RECT, frame: RECT, fileSize: int, records: int,
handles: int, palEntries: int, resolutionPixels: SIZE,
resolutionMM: SIZE, openGL: bool
}
val CloseEnhMetaFile : HDC -> HENHMETAFILE
val CloseMetaFile : HDC -> HMETAFILE
val CopyEnhMetaFile : HENHMETAFILE * string -> HENHMETAFILE
val CopyMetaFile : HMETAFILE * string -> HMETAFILE
val CreateEnhMetaFile :
HDC * string option * RECT *
{pictureName: string, applicationName: string} option -> HDC
val CreateMetaFile : string option -> HDC
val DeleteEnhMetaFile : HENHMETAFILE -> unit
val DeleteMetaFile : HMETAFILE -> unit
val GdiComment : HDC * Word8Vector.vector -> unit
val GetEnhMetaFile : string -> HENHMETAFILE
val GetEnhMetaFileBits : HENHMETAFILE -> Word8Vector.vector
val GetEnhMetaFileDescription :
HENHMETAFILE -> {pictureName: string, applicationName: string} option
val GetEnhMetaFileHeader : HENHMETAFILE -> ENHMETAHEADER
val GetMetaFile : string -> HMETAFILE
val GetMetaFileBitsEx : HMETAFILE -> Word8Vector.vector
val GetWinMetaFileBits :
HENHMETAFILE * Transform.MapMode * HDC -> Word8Vector.vector
val PlayEnhMetaFile : HDC * HENHMETAFILE * RECT -> unit
val PlayMetaFile : HDC * HMETAFILE -> unit
val SetEnhMetaFileBits : Word8Vector.vector -> HENHMETAFILE
val SetMetaFileBits : Word8Vector.vector -> HMETAFILE
val SetWinMetaFileBits :
Word8Vector.vector * HDC * {size: SIZE, mapMode: MapMode} option -> HENHMETAFILE
end</pre>
</body>
</html>
|