Method TryPlay
TryPlay(byte[]?, long?, out MetafileDisplayList?, out string)
Plays a metafile payload.
public static bool TryPlay(byte[]? bytes, long? maxPixels, out MetafileDisplayList? displayList, out string error)
Parameters
bytesbyte[]The complete metafile bytes.
maxPixelslong?The pixel ceiling applied to each embedded bitmap, or null for none. This is the caller's
ResourceLimits.MaxImagePixels: a metafile's bitmaps are images and are charged against the same budget as any other image in the document.displayListMetafileDisplayListThe playback result on success.
errorstringThe reason playback produced nothing.
Returns
- bool
True when the payload produced a display list.