Export (0) Print
Expand All

TransformedBitmap Constructor (BitmapSource, Transform)

Initializes a new instance of the TransformedBitmap class that has the specified Source and Transform.

Namespace:  System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

public TransformedBitmap(
	BitmapSource source,
	Transform newTransform
)

Parameters

source
Type: System.Windows.Media.Imaging.BitmapSource

The Source of the new TransformedBitmap instance.

newTransform
Type: System.Windows.Media.Transform

The Transform of the new TransformedBitmap instance.

ExceptionCondition
ArgumentNullException

The source parameter is null.

InvalidOperationException

The newTransform parameter is null.

-or-

The transform is not an orthogonal transform.

TransformedBitmap objects created using this constructor are automatically initialized. After initialization, property changes are ignored.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft