Table of Contents

Class BitmapSourceTransform

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll
[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 RawBox

The rectangle.

width int

The width.

height int

The height.

guidDstFormat Guid

The GUID DST format.

dstTransform BitmapTransformOptions

The DST transform.

stride int

The stride.

output DataStream

The 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 int

The width.

height int

The height.

dstTransform BitmapTransformOptions

The DST transform.

stride int

The stride.

output DataStream

The 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 int

The width.

height int

The height.

guidDstFormat Guid

The GUID DST format.

dstTransform BitmapTransformOptions

The DST transform.

stride int

The stride.

output DataStream

The 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

width int

The width.

height int

The height.

stride int

The stride.

output DataStream

The output.

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 Guid

No 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 Size2

The 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 BitmapTransformOptions

No documentation.

fIsSupportedRef RawBool

No 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

Returns

BitmapSourceTransform