Class BitmapSourceTransform
[Guid("3B16811B-6A43-4ec9-B713-3D5A0C13B940")]
public class BitmapSourceTransform : ComObject
- Inheritance
-
BitmapSourceTransform
Constructors
BitmapSourceTransform(nint)
public BitmapSourceTransform(nint nativePtr)
Parameters
nativePtr
nint
Methods
CopyPixels(RawBox, int, int, Guid, BitmapTransformOptions, int, DataStream)
Copies pixel data using the supplied input parameters.
public void CopyPixels(RawBox rectangle, int width, int height, Guid guidDstFormat, BitmapTransformOptions dstTransform, int stride, DataStream output)
Parameters
rectangle
RawBoxThe rectangle.
width
intThe width.
height
intThe height.
guidDstFormat
GuidThe GUID DST format.
dstTransform
BitmapTransformOptionsThe DST transform.
stride
intThe stride.
output
DataStreamThe output.
CopyPixels(int, int, BitmapTransformOptions, int, DataStream)
Copies pixel data using the supplied input parameters.
public void CopyPixels(int width, int height, BitmapTransformOptions dstTransform, int stride, DataStream output)
Parameters
width
intThe width.
height
intThe height.
dstTransform
BitmapTransformOptionsThe DST transform.
stride
intThe stride.
output
DataStreamThe output.
CopyPixels(int, int, Guid, BitmapTransformOptions, int, DataStream)
Copies pixel data using the supplied input parameters.
public void CopyPixels(int width, int height, Guid guidDstFormat, BitmapTransformOptions dstTransform, int stride, DataStream output)
Parameters
width
intThe width.
height
intThe height.
guidDstFormat
GuidThe GUID DST format.
dstTransform
BitmapTransformOptionsThe DST transform.
stride
intThe stride.
output
DataStreamThe output.
CopyPixels(int, int, int, DataStream)
Copies pixel data using the supplied input parameters.
public void CopyPixels(int width, int height, int stride, DataStream output)
Parameters
GetClosestPixelFormat(ref Guid)
Retrieves the closest pixel format to which the implementation of BitmapSourceTransform can natively copy pixels, given a desired format.
public void GetClosestPixelFormat(ref Guid guidDstFormatRef)
Parameters
guidDstFormatRef
GuidNo documentation.
Remarks
The Windows provided codecs provide the following support:
- BMP, ICO, GIF, TIFF: No implementation of BitmapSourceTransform.
- JPEG, PNG, JPEG-XR: Trivial support (always returns the same value as IWICBitmapFrameDecode::GetPixelFormat).
GetClosestSize(ref Size2)
Returns the closest dimensions the implementation can natively scale to given the desired dimensions.
public void GetClosestSize(ref Size2 size)
Parameters
size
Size2The size.
IsSupportingTransform(BitmapTransformOptions, out RawBool)
Determines whether a specific transform option is supported natively by the implementation of the BitmapSourceTransform interface.
public void IsSupportingTransform(BitmapTransformOptions dstTransform, out RawBool fIsSupportedRef)
Parameters
dstTransform
BitmapTransformOptionsNo documentation.
fIsSupportedRef
RawBoolNo documentation.
Remarks
The Windows provided codecs provide the following level of support:
- BMP, ICO, GIF, TIFF: No implementation of BitmapSourceTransform.
- JPEG, PNG: Trivial support (WICBitmapTransformRotate0 only).
- JPEG-XR: Support for all transformation/rotations.
Operators
explicit operator BitmapSourceTransform(nint)
public static explicit operator BitmapSourceTransform(nint nativePtr)
Parameters
nativePtr
nint