[]
IWICImagingFactory
[Guid("ec5ec8a9-c395-4314-9c77-54d7a935ff70")]
public class ImagingFactory : ComObject, IDisposable, IUnknown
Initializes a new instance of the ImagingFactory class.
public ImagingFactory(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Constant WICImagingFactoryClsid.
public static readonly Guid WICImagingFactoryClsid
Creates a new instance of the ImagingFactory class.
public static ImagingFactory Create()
HRESULT IWICImagingFactory::CreateBitmap([In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] const GUID& pixelFormat,[In] WICBitmapCreateCacheOption option,[Out, Fast] IWICBitmap** ppIBitmap)
public Bitmap CreateBitmap(int width, int height, Guid pixelFormatRef, BitmapCreateCacheOption option)
width
intheight
intpixelFormatRef
System.Guidoption
BitmapCreateCacheOptionHRESULT IWICImagingFactory::CreateBitmapClipper([Out, Fast] IWICBitmapClipper** ppIBitmapClipper)
public BitmapClipper CreateBitmapClipper()
HRESULT IWICImagingFactory::CreateBitmapFlipRotator([Out, Fast] IWICBitmapFlipRotator** ppIBitmapFlipRotator)
public BitmapFlipRotator CreateBitmapFlipRotator()
HRESULT IWICImagingFactory::CreateBitmapFromHBITMAP([In] HBITMAP hBitmap,[In, Optional] HPALETTE hPalette,[In] WICBitmapAlphaChannelOption options,[Out, Fast] IWICBitmap** ppIBitmap)
public Bitmap CreateBitmapFromHBITMAP(IntPtr hBitmap, IntPtr hPalette, BitmapAlphaChannelOption options)
hBitmap
System.IntPtrhPalette
System.IntPtroptions
BitmapAlphaChannelOptionHRESULT IWICImagingFactory::CreateBitmapFromHICON([In] HICON hIcon,[Out, Fast] IWICBitmap** ppIBitmap)
public Bitmap CreateBitmapFromHICON(IntPtr hIcon)
hIcon
System.IntPtrHRESULT IWICImagingFactory::CreateBitmapFromMemory([In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] const GUID& pixelFormat,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer,[Out, Fast] IWICBitmap** ppIBitmap)
public Bitmap CreateBitmapFromMemory(int width, int height, Guid pixelFormatRef, int stride, int bufferSize, IntPtr bufferRef)
width
intheight
intpixelFormatRef
System.Guidstride
intbufferSize
intbufferRef
System.IntPtrHRESULT IWICImagingFactory::CreateBitmapFromSource([In, Optional] IWICBitmapSource* pIBitmapSource,[In] WICBitmapCreateCacheOption option,[Out, Fast] IWICBitmap** ppIBitmap)
public Bitmap CreateBitmapFromSource(BitmapSource bitmapSourceRef, BitmapCreateCacheOption option)
bitmapSourceRef
BitmapSourceoption
BitmapCreateCacheOptionHRESULT IWICImagingFactory::CreateBitmapFromSourceRect([In, Optional] IWICBitmapSource* pIBitmapSource,[In] unsigned int x,[In] unsigned int y,[In] unsigned int width,[In] unsigned int height,[Out, Fast] IWICBitmap** ppIBitmap)
public Bitmap CreateBitmapFromSourceRect(BitmapSource bitmapSourceRef, int x, int y, int width, int height)
bitmapSourceRef
BitmapSourcex
inty
intwidth
intheight
intHRESULT IWICImagingFactory::CreateBitmapScaler([Out, Fast] IWICBitmapScaler** ppIBitmapScaler)
public BitmapScaler CreateBitmapScaler()
HRESULT IWICImagingFactory::CreateColorContext([Out, Fast] IWICColorContext** ppIWICColorContext)
public ColorContext CreateColorContext()
HRESULT IWICImagingFactory::CreateColorTransformer([Out, Fast] IWICColorTransform** ppIWICColorTransform)
public ColorTransform CreateColorTransformer()
HRESULT IWICImagingFactory::CreateComponentEnumerator([In] unsigned int componentTypes,[In] unsigned int options,[Out, Fast] IEnumUnknown** ppIEnumUnknown)
public ComObject CreateComponentEnumerator(int componentTypes, int options)
componentTypes
intoptions
intHRESULT IWICImagingFactory::CreateComponentInfo([In] const GUID& clsidComponent,[Out, Fast] IWICComponentInfo** ppIInfo)
public ComponentInfo CreateComponentInfo(Guid clsidComponent)
clsidComponent
System.GuidHRESULT IWICImagingFactory::CreateDecoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICBitmapDecoder** ppIDecoder)
public BitmapDecoder CreateDecoder(Guid guidContainerFormat, Guid? guidVendorRef)
guidContainerFormat
System.GuidguidVendorRef
System.Guid?HRESULT IWICImagingFactory::CreateDecoderFromFileHandle([In] ULONG_PTR hFile,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder)
public BitmapDecoder CreateDecoderFromFileHandle(IntPtr hFile, Guid? guidVendorRef, DecodeOptions metadataOptions)
hFile
System.IntPtrguidVendorRef
System.Guid?metadataOptions
DecodeOptionsHRESULT IWICImagingFactory::CreateDecoderFromFilename([In] const wchar_t* wzFilename,[In, Optional] const GUID* pguidVendor,[In] unsigned int dwDesiredAccess,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder)
public BitmapDecoder CreateDecoderFromFilename(string filename, Guid? guidVendorRef, int desiredAccess, DecodeOptions metadataOptions)
filename
stringguidVendorRef
System.Guid?desiredAccess
intmetadataOptions
DecodeOptionsHRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICBitmapEncoder** ppIEncoder)
public BitmapEncoder CreateEncoder(Guid guidContainerFormat, Guid? guidVendorRef)
guidContainerFormat
System.GuidguidVendorRef
System.Guid?HRESULT IWICImagingFactory::CreateFastMetadataEncoderFromDecoder([In, Optional] IWICBitmapDecoder* pIDecoder,[Out, Fast] IWICFastMetadataEncoder** ppIFastEncoder)
public FastMetadataEncoder CreateFastMetadataEncoderFromDecoder(BitmapDecoder decoderRef)
decoderRef
BitmapDecoderHRESULT IWICImagingFactory::CreateFastMetadataEncoderFromFrameDecode([In, Optional] IWICBitmapFrameDecode* pIFrameDecoder,[Out, Fast] IWICFastMetadataEncoder** ppIFastEncoder)
public FastMetadataEncoder CreateFastMetadataEncoderFromFrameDecode(BitmapFrameDecode frameDecoderRef)
frameDecoderRef
BitmapFrameDecodeHRESULT IWICImagingFactory::CreateFormatConverter([Out, Fast] IWICFormatConverter** ppIFormatConverter)
public FormatConverter CreateFormatConverter()
HRESULT IWICImagingFactory::CreatePalette([Out, Fast] IWICPalette** ppIPalette)
public Palette CreatePalette()
HRESULT IWICImagingFactory::CreateQueryWriter([In] const GUID& guidMetadataFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICMetadataQueryWriter** ppIQueryWriter)
public MetadataQueryWriter CreateQueryWriter(Guid guidMetadataFormat, Guid? guidVendorRef)
guidMetadataFormat
System.GuidguidVendorRef
System.Guid?HRESULT IWICImagingFactory::CreateQueryWriterFromReader([In, Optional] IWICMetadataQueryReader* pIQueryReader,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICMetadataQueryWriter** ppIQueryWriter)
public MetadataQueryWriter CreateQueryWriterFromReader(MetadataQueryReader queryReaderRef, Guid? guidVendorRef)
queryReaderRef
MetadataQueryReaderguidVendorRef
System.Guid?HRESULT IWICImagingFactory::CreateStream([Out, Fast] IWICStream** ppIWICStream)
public WicStream CreateStream()
Performs an explicit conversion from System.IntPtr to ImagingFactory.
public static explicit operator ImagingFactory(IntPtr nativePointer)
nativePointer
System.IntPtr