XMConvertFloatToHalfStream
XMConvertHalfToFloatStream
XMMatrixDecompose
XMPlaneTransformStream
XMVector2TransformCoordStream
XMVector2TransformNormalStream
XMVector2TransformStream
XMVector3ProjectStream
XMVector3TransformCoordStream
XMVector3TransformNormalStream
XMVector3TransformStream
XMVector3UnprojectStream
XMVector4TransformStream
Expand Minimize

IWICImagingFactory interface

Exposes methods used to create components for the Windows Imaging Component (WIC) such as decoders, encoders and pixel format converters.

Members

The IWICImagingFactory interface inherits from the IUnknown interface. IWICImagingFactory also has these types of members:

Methods

The IWICImagingFactory interface has these methods.

MethodDescription
CreateBitmap

Creates an IWICBitmap object.

CreateBitmapClipper

Creates a new instance of an IWICBitmapClipper object.

CreateBitmapFlipRotator

Creates a new instance of an IWICBitmapFlipRotator object.

CreateBitmapFromHBITMAP

Creates an IWICBitmap from a bitmap handle.

CreateBitmapFromHICON

Creates an IWICBitmap from an icon handle.

CreateBitmapFromMemory

Creates an IWICBitmap from a memory block.

CreateBitmapFromSource

Creates a IWICBitmap from a IWICBitmapSource.

CreateBitmapFromSourceRect

Creates an IWICBitmap from a specified rectangle of an IWICBitmapSource.

CreateBitmapScaler

Creates a new instance of an IWICBitmapScaler.

CreateColorContext

Creates a new instance of the IWICColorContext class.

CreateColorTransformer

Creates a new instance of the IWICColorTransform class.

CreateComponentEnumerator

Creates an IEnumUnknown object of the specified component types.

CreateComponentInfo

Creates a new instance of the IWICComponentInfo class for the given component CLSID.

CreateDecoder

Creates a new instance of the IWICBitmapDecoder interface.

CreateDecoderFromFileHandle

Creates a new instance of the IWICBitmapDecoder based on the given file handle.

CreateDecoderFromFilename

Creates a new instance of the IWICBitmapDecoder class based on the given file.

CreateDecoderFromStream

Creates a new instance of the IWICBitmapDecoder class based on the given IStream.

CreateEncoder

Creates a new instance of the IWICBitmapEncoder class.

CreateFastMetadataEncoderFromDecoder

Creates a new instance of the fast metadata encoder based on the given IWICBitmapDecoder.

CreateFastMetadataEncoderFromFrameDecode

Creates a new instance of the fast metadata encoder based on the given image frame.

CreateFormatConverter

Creates a new instance of the IWICFormatConverter class.

CreatePalette

Creates a new instance of the IWICPalette class.

CreateQueryWriter

Creates a new instance of a query writer.

CreateQueryWriterFromReader

Creates a new instance of a query writer based on the given query reader. The query writer will be pre-populated with metadata from the query reader.

CreateStream

Creates a new instance of the IWICStream class.

 

Examples

The imaging factory should be created by calling CoCreateInstance.


IWICImagingFactory *pFactory = NULL;
IWICBitmapDecoder *pDecoder = NULL; 

HRESULT hr = CoCreateInstance(
    CLSID_WICImagingFactory,
    NULL,
    CLSCTX_INPROC_SERVER,
    IID_IWICImagingFactory,
    (LPVOID*)&pFactory
    );

if (SUCCEEDED(hr))
{
    hr = pFactory->CreateDecoderFromFilename(
                    L"test.jpg",
                    NULL,
                    GENERIC_READ,
                    WICDecodeMetadataCacheOnDemand,
                    &pDecoder);
} 

if (SUCCEEDED(hr))
{
    UINT uiFrameCount = 0;
    hr = pDecoder->GetFrameCount(&uiFrameCount);
} 

if (pFactory)
{
    pFactory->Release();
}

if (pDecoder)
{
    pDecoder->Release();
}

return hr;

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

Wincodec.h

IDL

Wincodec.idl

Library

Windowscodecs.lib

DLL

Windowscodecs.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft