[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.WIC.ImagingFactory

Class ImagingFactory

Namespace
GrapeCity.Documents.DX.WIC
Assembly
GcDocs.DX.Windows.dll

IWICImagingFactory

[Guid("ec5ec8a9-c395-4314-9c77-54d7a935ff70")]
public class ImagingFactory : ComObject, IDisposable, IUnknown
Inheritance
object
ImagingFactory
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

ImagingFactory(IntPtr)

Initializes a new instance of the ImagingFactory class.

public ImagingFactory(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Fields

WICImagingFactoryClsid

Constant WICImagingFactoryClsid.

public static readonly Guid WICImagingFactoryClsid

Field Value

System.Guid

Methods

Create()

Creates a new instance of the ImagingFactory class.

public static ImagingFactory Create()

Returns

ImagingFactory

CreateBitmap(int, int, Guid, BitmapCreateCacheOption)

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)

Parameters

width int
height int
pixelFormatRef System.Guid
option BitmapCreateCacheOption

Returns

Bitmap

CreateBitmapClipper()

HRESULT IWICImagingFactory::CreateBitmapClipper([Out, Fast] IWICBitmapClipper** ppIBitmapClipper)

public BitmapClipper CreateBitmapClipper()

Returns

BitmapClipper

CreateBitmapFlipRotator()

HRESULT IWICImagingFactory::CreateBitmapFlipRotator([Out, Fast] IWICBitmapFlipRotator** ppIBitmapFlipRotator)

public BitmapFlipRotator CreateBitmapFlipRotator()

Returns

BitmapFlipRotator

CreateBitmapFromHBITMAP(IntPtr, IntPtr, BitmapAlphaChannelOption)

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)

Parameters

hBitmap System.IntPtr
hPalette System.IntPtr
options BitmapAlphaChannelOption

Returns

Bitmap

CreateBitmapFromHICON(IntPtr)

HRESULT IWICImagingFactory::CreateBitmapFromHICON([In] HICON hIcon,[Out, Fast] IWICBitmap** ppIBitmap)

public Bitmap CreateBitmapFromHICON(IntPtr hIcon)

Parameters

hIcon System.IntPtr

Returns

Bitmap

CreateBitmapFromMemory(int, int, Guid, int, int, IntPtr)

HRESULT 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)

Parameters

width int
height int
pixelFormatRef System.Guid
stride int
bufferSize int
bufferRef System.IntPtr

Returns

Bitmap

CreateBitmapFromSource(BitmapSource, BitmapCreateCacheOption)

HRESULT IWICImagingFactory::CreateBitmapFromSource([In, Optional] IWICBitmapSource* pIBitmapSource,[In] WICBitmapCreateCacheOption option,[Out, Fast] IWICBitmap** ppIBitmap)

public Bitmap CreateBitmapFromSource(BitmapSource bitmapSourceRef, BitmapCreateCacheOption option)

Parameters

bitmapSourceRef BitmapSource
option BitmapCreateCacheOption

Returns

Bitmap

CreateBitmapFromSourceRect(BitmapSource, int, int, int, int)

HRESULT 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)

Parameters

bitmapSourceRef BitmapSource
x int
y int
width int
height int

Returns

Bitmap

CreateBitmapScaler()

HRESULT IWICImagingFactory::CreateBitmapScaler([Out, Fast] IWICBitmapScaler** ppIBitmapScaler)

public BitmapScaler CreateBitmapScaler()

Returns

BitmapScaler

CreateColorContext()

HRESULT IWICImagingFactory::CreateColorContext([Out, Fast] IWICColorContext** ppIWICColorContext)

public ColorContext CreateColorContext()

Returns

ColorContext

CreateColorTransformer()

HRESULT IWICImagingFactory::CreateColorTransformer([Out, Fast] IWICColorTransform** ppIWICColorTransform)

public ColorTransform CreateColorTransformer()

Returns

ColorTransform

CreateComponentEnumerator(int, int)

HRESULT IWICImagingFactory::CreateComponentEnumerator([In] unsigned int componentTypes,[In] unsigned int options,[Out, Fast] IEnumUnknown** ppIEnumUnknown)

public ComObject CreateComponentEnumerator(int componentTypes, int options)

Parameters

componentTypes int
options int

Returns

ComObject

CreateComponentInfo(Guid)

HRESULT IWICImagingFactory::CreateComponentInfo([In] const GUID& clsidComponent,[Out, Fast] IWICComponentInfo** ppIInfo)

public ComponentInfo CreateComponentInfo(Guid clsidComponent)

Parameters

clsidComponent System.Guid

Returns

ComponentInfo

CreateDecoder(Guid, Guid?)

HRESULT IWICImagingFactory::CreateDecoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICBitmapDecoder** ppIDecoder)

public BitmapDecoder CreateDecoder(Guid guidContainerFormat, Guid? guidVendorRef)

Parameters

guidContainerFormat System.Guid
guidVendorRef System.Guid?

Returns

BitmapDecoder

CreateDecoderFromFileHandle(IntPtr, Guid?, DecodeOptions)

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)

Parameters

hFile System.IntPtr
guidVendorRef System.Guid?
metadataOptions DecodeOptions

Returns

BitmapDecoder

CreateDecoderFromFilename(string, Guid?, int, DecodeOptions)

HRESULT 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)

Parameters

filename string
guidVendorRef System.Guid?
desiredAccess int
metadataOptions DecodeOptions

Returns

BitmapDecoder

CreateEncoder(Guid, Guid?)

HRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICBitmapEncoder** ppIEncoder)

public BitmapEncoder CreateEncoder(Guid guidContainerFormat, Guid? guidVendorRef)

Parameters

guidContainerFormat System.Guid
guidVendorRef System.Guid?

Returns

BitmapEncoder

CreateFastMetadataEncoderFromDecoder(BitmapDecoder)

HRESULT IWICImagingFactory::CreateFastMetadataEncoderFromDecoder([In, Optional] IWICBitmapDecoder* pIDecoder,[Out, Fast] IWICFastMetadataEncoder** ppIFastEncoder)

public FastMetadataEncoder CreateFastMetadataEncoderFromDecoder(BitmapDecoder decoderRef)

Parameters

decoderRef BitmapDecoder

Returns

FastMetadataEncoder

CreateFastMetadataEncoderFromFrameDecode(BitmapFrameDecode)

HRESULT IWICImagingFactory::CreateFastMetadataEncoderFromFrameDecode([In, Optional] IWICBitmapFrameDecode* pIFrameDecoder,[Out, Fast] IWICFastMetadataEncoder** ppIFastEncoder)

public FastMetadataEncoder CreateFastMetadataEncoderFromFrameDecode(BitmapFrameDecode frameDecoderRef)

Parameters

frameDecoderRef BitmapFrameDecode

Returns

FastMetadataEncoder

CreateFormatConverter()

HRESULT IWICImagingFactory::CreateFormatConverter([Out, Fast] IWICFormatConverter** ppIFormatConverter)

public FormatConverter CreateFormatConverter()

Returns

FormatConverter

CreatePalette()

HRESULT IWICImagingFactory::CreatePalette([Out, Fast] IWICPalette** ppIPalette)

public Palette CreatePalette()

Returns

Palette

CreateQueryWriter(Guid, Guid?)

HRESULT IWICImagingFactory::CreateQueryWriter([In] const GUID& guidMetadataFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICMetadataQueryWriter** ppIQueryWriter)

public MetadataQueryWriter CreateQueryWriter(Guid guidMetadataFormat, Guid? guidVendorRef)

Parameters

guidMetadataFormat System.Guid
guidVendorRef System.Guid?

Returns

MetadataQueryWriter

CreateQueryWriterFromReader(MetadataQueryReader, Guid?)

HRESULT IWICImagingFactory::CreateQueryWriterFromReader([In, Optional] IWICMetadataQueryReader* pIQueryReader,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICMetadataQueryWriter** ppIQueryWriter)

public MetadataQueryWriter CreateQueryWriterFromReader(MetadataQueryReader queryReaderRef, Guid? guidVendorRef)

Parameters

queryReaderRef MetadataQueryReader
guidVendorRef System.Guid?

Returns

MetadataQueryWriter

CreateStream()

HRESULT IWICImagingFactory::CreateStream([Out, Fast] IWICStream** ppIWICStream)

public WicStream CreateStream()

Returns

WicStream

Operators

explicit operator ImagingFactory(IntPtr)

Performs an explicit conversion from System.IntPtr to ImagingFactory.

public static explicit operator ImagingFactory(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

ImagingFactory