WICImageParameters structure (wincodec.h)
This defines parameters that you can use to override the default parameters normally used when encoding an image.
Syntax
typedef struct WICImageParameters {
D2D1_PIXEL_FORMAT PixelFormat;
FLOAT DpiX;
FLOAT DpiY;
FLOAT Top;
FLOAT Left;
UINT32 PixelWidth;
UINT32 PixelHeight;
} WICImageParameters;
Members
PixelFormat
The pixel format to which the image is processed before it is written to the encoder.
DpiX
The DPI in the x dimension.
DpiY
The DPI in the y dimension.
Top
The top corner in pixels of the image space to be encoded to the destination.
Left
The left corner in pixels of the image space to be encoded to the destination.
PixelWidth
The width in pixels of the part of the image to write.
PixelHeight
The height in pixels of the part of the image to write.
Remarks
If this parameter is not passed to the encoding API, the encoder uses these settings.
- A pixel format of (DXGI_FORMAT_B8G8R8A8_UNORM, D2D1_ALPHA_MODE_PREMULTIPLIED).
- An x and y DPI of 96.
- The entire image bounds will be used for encoding.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Header | wincodec.h |