[]
IWICBitmapEncoder
[Guid("00000103-a8f2-4877-ba0a-fd2b6645fb94")]
public class BitmapEncoder : ComObject, IDisposable, IUnknown
Initializes a new instance of the BitmapEncoder class.
public BitmapEncoder(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
HRESULT IWICBitmapEncoder::Commit()
public void Commit()
Initializes a new instance of the BitmapEncoder class.
public static BitmapEncoder Create(ImagingFactory factory, Guid containerFormatGuid, WicStream stream)
factory
ImagingFactoryThe factory.
containerFormatGuid
System.GuidThe container format GUID. List from ContainerFormatGuids
stream
WicStreamA stream to use as the output of this bitmap encoder.
Initializes a new instance of the BitmapEncoder class.
public static BitmapEncoder Create(ImagingFactory factory, Guid containerFormatGuid, Guid guidVendorRef, WicStream stream)
factory
ImagingFactoryThe factory.
containerFormatGuid
System.GuidThe container format GUID. List from ContainerFormatGuids
guidVendorRef
System.GuidThe GUID vendor ref.
stream
WicStreamA stream to use as the output of this bitmap encoder.
Initializes a new instance of the BitmapEncoder class.
public static BitmapEncoder Create(ImagingFactory factory, Guid containerFormatGuid, Guid guidVendorRef, Stream stream)
factory
ImagingFactoryThe factory.
containerFormatGuid
System.GuidThe container format GUID. List from ContainerFormatGuids
guidVendorRef
System.GuidThe GUID vendor ref.
stream
System.IO.StreamA stream to use as the output of this bitmap encoder.
Initializes a new instance of the BitmapEncoder class.
public static BitmapEncoder Create(ImagingFactory factory, Guid containerFormatGuid, Guid guidVendorRef)
factory
ImagingFactoryThe factory.
containerFormatGuid
System.GuidThe container format GUID. List from ContainerFormatGuids
guidVendorRef
System.GuidThe GUID vendor ref.
Initializes a new instance of the BitmapEncoder class.
public static BitmapEncoder Create(ImagingFactory factory, Guid containerFormatGuid, Stream stream)
factory
ImagingFactoryThe factory.
containerFormatGuid
System.GuidThe container format GUID. List from ContainerFormatGuids
stream
System.IO.StreamA stream to use as the output of this bitmap encoder.
Initializes a new instance of the BitmapEncoder class.
public static BitmapEncoder Create(ImagingFactory factory, Guid containerFormatGuid)
factory
ImagingFactoryThe factory.
containerFormatGuid
System.GuidThe container format GUID. List from ContainerFormatGuids
HRESULT IWICBitmapEncoder::CreateNewFrame([Out, Fast] IWICBitmapFrameEncode** ppIFrameEncode,[Out, Fast] IPropertyBag2** ppIEncoderOptions)
public BitmapFrameEncode CreateNewFrame(PropertyBag encoderOptionsOut)
encoderOptionsOut
PropertyBagClean up any resources being used.
protected override void Dispose(bool disposing)
disposing
boolHRESULT IWICBitmapEncoder::GetContainerFormat([Out] GUID* pguidContainerFormat)
public Guid GetContainerFormat()
HRESULT IWICBitmapEncoder::GetEncoderInfo([Out] IWICBitmapEncoderInfo** ppIEncoderInfo)
public BitmapEncoderInfo GetEncoderInfo()
HRESULT IWICBitmapEncoder::GetMetadataQueryWriter([Out] IWICMetadataQueryWriter** ppIMetadataQueryWriter)
public MetadataQueryWriter GetMetadataQueryWriter()
Initializes the encoder with the provided stream.
public void Initialize(IStream stream)
stream
IStreamThe stream to use for initialization.
Initializes the encoder with the provided stream.
public void Initialize(Stream stream)
stream
System.IO.StreamThe stream to use for initialization.
Sets the ColorContext objects for the encoder.
public void SetColorContexts(ColorContext[] colorContextOut)
colorContextOut
ColorContext[]The color contexts to set for the encoder.
HRESULT IWICBitmapEncoder::SetColorContexts([In] unsigned int cCount,[In, Buffer] IWICColorContext** ppIColorContext)
public void SetColorContexts(int count, ComArray<ColorContext> colorContextOut)
count
intcolorContextOut
ComArray<ColorContext>HRESULT IWICBitmapEncoder::SetColorContexts([In] unsigned int cCount,[In, Buffer] IWICColorContext** ppIColorContext)
public void SetColorContexts(int count, ColorContext[] colorContextOut)
count
intcolorContextOut
ColorContext[]HRESULT IWICBitmapEncoder::SetPalette([In, Optional] IWICPalette* pIPalette)
public void SetPalette(Palette paletteRef)
paletteRef
PaletteHRESULT IWICBitmapEncoder::SetPreview([In, Optional] IWICBitmapSource* pIPreview)
public void SetPreview(BitmapSource previewRef)
previewRef
BitmapSourceHRESULT IWICBitmapEncoder::SetThumbnail([In, Optional] IWICBitmapSource* pIThumbnail)
public void SetThumbnail(BitmapSource thumbnailRef)
thumbnailRef
BitmapSourcePerforms an explicit conversion from System.IntPtr to BitmapEncoder.
public static explicit operator BitmapEncoder(IntPtr nativePointer)
nativePointer
System.IntPtr