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.

Exception Condition
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
Available since 3.0
Return to top
Show: