Gets the encoder sub-format flags for a particular sub-format and pixel format.
HRESULT GetSubFormatFlags( |
|
Returns S_OK if successful, or an error value otherwise.
This method returns the WICLeadSubFormatFlags for a particular sub-format of a LEAD encoder.
You must first call GetSubFormats to get the array of valid sub-formats for the particular LEAD encoder. Then call GetSubFormatFlags on a particular member of the sub-format array to get the flags for the sub-format. The sub-format flags will be a logical "or" of zero or more of the WICLeadSubFormatFlags. Note that the uSubFormatIndex argument is an index into the sub-format array, and NOT a WICLeadSubFormat constant.
The (sub-format)/(sub-format flag) pair is unique, and has a name that is obtained by calling the GetSubFormatFriendlyName method. For more information, see GetSubFormats.
Reference
LEAD WIC-Enabled Codecs Overview
Registering a LEAD WIC-Enabled Codec
LEAD Bitmap Encoder Property Bag
LEAD Bitmap Encoder Property Bag: Jpeg2000 Specific Options
LEAD Bitmap Encoder Property Bag: Jbig2 Specific Options
LEAD Bitmap Encoder Property Bag: XPS Specific Options
For an example, refer to the IWICLeadBitmapEncoder::GetSubFormats method.