Class MetafileDisplayList
A metafile played back into a renderer-neutral list of drawing commands.
public sealed class MetafileDisplayList
- Inheritance
-
MetafileDisplayList
- Inherited Members
Remarks
Everything here is in the metafile's own device units. Frame is the rectangle a consumer maps onto its target: it is the picture's declared extent, derived from the physical frame in the file header, and it is not the bounding box of the ink. Those differ in real files — the Word-authored fixture this reader was built against draws inside 75 × 48 device units of a 95 × 54 picture — and mapping the ink bounds instead stretches the drawing and discards the margins the recorder intended.
Constructors
- MetafileDisplayList(MetafileFormat, MetafileRect, IReadOnlyList<MetafileCommand>, IReadOnlyList<int>)
Initializes a display list.
Properties
- Commands
Gets the drawing commands in order.
- Format
Gets the container the commands were read from.
- Frame
Gets the picture extent in device units — the rectangle a consumer maps onto its target.
- IsEmpty
Gets a value indicating whether the list contains anything to draw.
- UnsupportedRecordTypes
Gets the distinct record types that were recognized but not played, in ascending order.