[]
IWICBitmapSourceTransform
[Guid("3B16811B-6A43-4ec9-B713-3D5A0C13B940")]
public class BitmapSourceTransform : ComObject, IDisposable, IUnknown
Initializes a new instance of the BitmapSourceTransform class.
public BitmapSourceTransform(IntPtr nativePtr)
nativePtr
IntPtrThe native pointer.
Copies pixel data using the supplied input parameters.
public void CopyPixels(RectL rectangle, int width, int height, Guid guidDstFormat, BitmapTransformOptions dstTransform, int stride, DataStream output)
rectangle
RectLThe rectangle.
width
intThe width.
height
intThe height.
guidDstFormat
GuidThe GUID DST format.
dstTransform
BitmapTransformOptionsThe DST transform.
stride
intThe stride.
output
DataStreamThe output.
Copies pixel data using the supplied input parameters.
public void CopyPixels(int width, int height, BitmapTransformOptions dstTransform, int stride, DataStream output)
width
intThe width.
height
intThe height.
dstTransform
BitmapTransformOptionsThe DST transform.
stride
intThe stride.
output
DataStreamThe output.
Copies pixel data using the supplied input parameters.
public void CopyPixels(int width, int height, Guid guidDstFormat, BitmapTransformOptions dstTransform, int stride, DataStream output)
width
intThe width.
height
intThe height.
guidDstFormat
GuidThe GUID DST format.
dstTransform
BitmapTransformOptionsThe DST transform.
stride
intThe stride.
output
DataStreamThe output.
Copies pixel data using the supplied input parameters.
public void CopyPixels(int width, int height, int stride, DataStream output)
width
intThe width.
height
intThe height.
stride
intThe stride.
output
DataStreamThe output.
HRESULT IWICBitmapSourceTransform::CopyPixels([In] const void* prc,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In, Optional] GUID* pguidDstFormat,[In] WICBitmapTransformOptions dstTransform,[In] unsigned int nStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer)
public void CopyPixels(IntPtr rectangleRef, int width, int height, Guid? guidDstFormatRef, BitmapTransformOptions dstTransform, int nStride, int bufferSize, IntPtr bufferRef)
rectangleRef
IntPtrwidth
intheight
intguidDstFormatRef
Guid?dstTransform
BitmapTransformOptionsnStride
intbufferSize
intbufferRef
IntPtrHRESULT IWICBitmapSourceTransform::GetClosestPixelFormat([InOut] GUID* pguidDstFormat)
public void GetClosestPixelFormat(ref Guid guidDstFormatRef)
guidDstFormatRef
GuidReturns the closest dimensions the implementation can natively scale to given the desired dimensions.
public void GetClosestSize(ref Size2L size)
size
Size2LThe size.
HRESULT IWICBitmapSourceTransform::GetClosestSize([InOut] unsigned int* puiWidth,[InOut] unsigned int* puiHeight)
public void GetClosestSize(ref int widthRef, ref int heightRef)
HRESULT IWICBitmapSourceTransform::DoesSupportTransform([In] WICBitmapTransformOptions dstTransform,[Out] BOOL* pfIsSupported)
public bool IsSupportingTransform(BitmapTransformOptions dstTransform)
dstTransform
BitmapTransformOptionsPerforms an explicit conversion from IntPtr to BitmapSourceTransform.
public static explicit operator BitmapSourceTransform(IntPtr nativePointer)
nativePointer
IntPtr