Udostępnij za pośrednictwem


BitmapEncoder.BitmapTransform Property

Definition

A BitmapTransform object that is used to specify how the frame bitmap is to be transformed.

public:
 property BitmapTransform ^ BitmapTransform { BitmapTransform ^ get(); };
BitmapTransform BitmapTransform();
public BitmapTransform BitmapTransform { get; }
var bitmapTransform = bitmapEncoder.bitmapTransform;
Public ReadOnly Property BitmapTransform As BitmapTransform

Property Value

A BitmapTransform object that is used to specify how the frame bitmap is to be transformed.

Remarks

If you try scale an image stored in an indexed pixel format using the BitmapTransform member, FlushAsync fails with HRESULT WINCODEC_ERR_INVALIDPARAMETER . Instead, you must use GetPixelDataAsync to obtain the scaled pixel data and then use SetPixelData to set it on the encoder.

Applies to