Contains transformations that can be applied to pixel data.
public : sealed class BitmapTransform
public sealed class BitmapTransform
Public NotInheritable Class BitmapTransform
var bitmapTransform = new bitmapTransform();
Windows 10 requirements
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
The default values of BitmapTransform result in a pass-through operation.
The order of operations is when setting multiple transform operations is:
- Crop You should be careful to use the correct coordinate space when specifying each transform’s parameters. Scaling occurs before rotations and flips, and therefore you should specify ScaledWidth and ScaledHeight in the source image’s coordinate space. Cropping occurs after all other transforms, and therefore you should specify Bounds in the final scaled/flipped/rotated coordinate space.
If you are using BitmapTransform with a method that performs EXIF orientation, such as GetPixelDataAsync, note that the EXIF orientation operation is combined with the flip/rotate stage. In these cases the behavior of ScaledWidth and ScaledHeight are not affected as scaling occurs before flip/rotate. However, when specifying Bounds you need to account for coordinate space changes from Flip and Rotation, as well as the EXIF orientation operation. You can obtain the full image size after EXIF orientation is applied by using OrientedPixelWidth and OrientedPixelHeight.
|BitmapTransform() BitmapTransform() BitmapTransform() BitmapTransform() BitmapTransform()||
Creates a new BitmapTransform object.
|Bounds Bounds Bounds Bounds Bounds||
Specifies the bounding rectangle that is used to crop the bitmap. This rectangle is defined in the coordinate space after scale, rotation, and flip are applied.
|Flip Flip Flip Flip Flip||
Specifies the flip operation that is used to transform the bitmap.
|InterpolationMode InterpolationMode InterpolationMode InterpolationMode InterpolationMode||
Specifies the interpolation mode that is used to scale the bitmap.
|Rotation Rotation Rotation Rotation Rotation||
Specifies the rotation operation that is used to transform the bitmap.
|ScaledHeight ScaledHeight ScaledHeight ScaledHeight ScaledHeight||
Specifies the height, in pixels, of the bitmap after it is scaled. This is defined in the coordinate space of the source image, before rotation and flip are applied.
|ScaledWidth ScaledWidth ScaledWidth ScaledWidth ScaledWidth||
Specifies the width, in pixels, of the bitmap after it is scaled. This is defined in the coordinate space of the source image, before rotation and flip are applied.