IWICImagingFactory::CreateEncoder method
Creates a new instance of the IWICBitmapEncoder class.
Syntax
HRESULT CreateEncoder( [in] REFGUID guidContainerFormat, [in, optional] const GUID *pguidVendor, [out, retval] IWICBitmapEncoder **ppIEncoder );
Parameters
- guidContainerFormat [in]
-
Type: REFGUID
The GUID for the desired container format.
- pguidVendor [in, optional]
-
Type: const GUID*
The GUID for the preferred encoder vendor.
Value Meaning - NULL
No preferred codec vendor.
- GUID_VendorMicrosoft
Prefer to use Microsoft encoder.
- GUID_VendorMicrosoftBuiltIn
Prefer to use the native Microsoft encoder.
- ppIEncoder [out, retval]
-
Type: IWICBitmapEncoder**
A pointer that receives a pointer to a new IWICBitmapEncoder.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Other values may be available for both guidContainerFormat and pguidVendor depending on the installed WIC-enabled encoders. The values listed are those that are natively supported by the operating system.
Requirements
|
Minimum supported client |
Windows XP with SP2, Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
|
Library |
|
|
DLL |
|
See also