Class MetafileImageCommand
A bitmap blit, carrying PNG bytes ready for a renderer to draw.
public sealed class MetafileImageCommand : MetafileCommand
- Inheritance
-
MetafileImageCommand
- Inherited Members
Remarks
The payload is a PNG rather than the raw device-independent bitmap the metafile recorded, and that is deliberate: every renderer in this library already decodes PNG, including the alpha channel, so a blit costs no renderer change at all. Re-encoding here — in the package that owns both the DIB reader and the PNG encoder — is what keeps the metafile out of the renderers entirely.
Constructors
- MetafileImageCommand(byte[], MetafileRect)
Initializes an image command.
Properties
- Destination
Gets the destination rectangle in device units.
- PngByteCount
Gets the PNG payload length in bytes.
Methods
- GetPngBytes()
Returns a copy of the PNG file bytes.