PeachDrawing.Win2D
Win2dImageCodec Enum
Which decoder turns an encoded image (PNG, JPEG, ...) into the pixels a Win2dRenderContext draws.
public enum Win2dImageCodec
Fields
PeachImage 0
The shared PeachImage decoder: the same formats and the same pixels as on every other PeachDrawing canvas.
Native 1
The Windows Imaging Component, through BitmapDecoder: the codecs installed on the machine, which can read formats PeachImage does
not (whatever codec extensions the user has added) and hand decoding to hardware where the system does. A format Windows cannot decode is
handed to PeachImage instead unless FallbackToPeachImage is switched off.
Auto 2
The default. An image Windows has a codec for is kept as its encoded bytes and decoded by Windows straight into the bitmap of each device
it is drawn on, so no managed copy of its pixels is made unless something asks for them (GetPixels); any other image is decoded by
PeachImage. Pixels can differ from PeachImage’s where Windows converts differently (some colour-managed or CMYK files).