[]
IWICStream
[Guid("135FF860-22B7-4ddf-B0F6-218F4F299A43")]
public class WicStream : ComStream, IUnknown, IStream, IStreamBase, ICallbackable, IDisposable
Initializes a new instance of the WicStream class.
public WicStream(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Initializes a new instance of the WicStream class from an unmanaged memory through a DataStream.
public static WicStream Create(ImagingFactory factory, DataPointer dataStream)
factory
ImagingFactoryThe factory.
dataStream
DataPointerThe unmanaged memory stream.
public static WicStream Create(ImagingFactory factory, Stream stream)
factory
ImagingFactoryThe factory.
stream
System.IO.StreamThe stream.
Initializes a new instance of the WicStream class from a file.
public static WicStream Create(ImagingFactory factory, string fileName, NativeFileAccess fileAccess)
factory
ImagingFactoryThe factory.
fileName
stringName of the file.
fileAccess
NativeFileAccessThe file access.
Clean up any resources being used.
protected override void Dispose(bool disposing)
disposing
boolHRESULT IWICStream::InitializeFromFilename([In] const wchar_t* wzFileName,[In] unsigned int dwDesiredAccess)
public void InitializeFromFilename(string fileName, int desiredAccess)
fileName
stringdesiredAccess
intHRESULT IWICStream::InitializeFromMemory([In] void* pbBuffer,[In] unsigned int cbBufferSize)
public void InitializeFromMemory(IntPtr bufferRef, int bufferSize)
bufferRef
System.IntPtrbufferSize
intPerforms an explicit conversion from System.IntPtr to WicStream.
public static explicit operator WicStream(IntPtr nativePointer)
nativePointer
System.IntPtr