Class MetafilePlayer
Plays a metafile payload back into a renderer-neutral display list.
public static class MetafilePlayer
- Inheritance
-
MetafilePlayer
- Inherited Members
Remarks
This is the whole public surface of metafile support. A metafile is a recorded sequence of drawing calls rather than a picture, so it is played rather than decoded, and what comes out is a list of drawing commands in the metafile's own device units — not pixels. Mapping those commands onto a page is the caller's job, because only the caller knows how large the picture is meant to be.
Playback never throws for malformed input. A metafile that stops making sense partway through yields the commands read so far, which is what a viewer does and what a partially truncated preview should look like.
Methods
- Play(byte[]?, long?)
Plays a metafile payload, ignoring the reason for failure.
- TryPlay(byte[]?, long?, out MetafileDisplayList?, out string)
Plays a metafile payload.