BitmapTransform 클래스

정의

픽셀 데이터에 적용할 수 있는 변환을 포함합니다.

public ref class BitmapTransform sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class BitmapTransform final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class BitmapTransform final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class BitmapTransform
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class BitmapTransform
function BitmapTransform()
Public NotInheritable Class BitmapTransform
상속
Object Platform::Object IInspectable BitmapTransform
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

BitmapTransform의 기본값은 통과 작업을 생성합니다.

작업의 순서는 여러 변환 작업을 설정하는 경우입니다.

  1. 확장
  2. Flip
  3. 회전
  4. 자르기 각 변환의 매개 변수를 지정할 때 올바른 좌표 공간을 사용해야 합니다. 크기 조정은 회전 및 대칭 이동 전에 발생하므로 원본 이미지의 좌표 공간에서 ScaledWidthScaledHeight 를 지정해야 합니다. 자르기가 다른 모든 변환 후에 발생하므로 최종 크기 조정/대칭 이동/회전된 좌표 공간에서 경계 를 지정해야 합니다.

GetPixelDataAsync와 같은 EXIF 방향을 수행하는 메서드와 함께 BitmapTransform을 사용하는 경우 EXIF 방향 작업이 대칭 이동/회전 단계와 결합됩니다. 이러한 경우 대칭 이동/회전 전에 크기 조정이 수행되기 때문에 ScaledWidthScaledHeight 의 동작은 영향을 받지 않습니다. 그러나 경계 를 지정할 때 는 대칭 이동회전의 좌표 공간 변경과 EXIF 방향 작업을 고려해야 합니다. OrientedPixelWidthOrientedPixelHeight를 사용하여 EXIF 방향이 적용된 후 전체 이미지 크기를 가져올 수 있습니다.

생성자

BitmapTransform()

새 BitmapTransform 개체를 만듭니다.

속성

Bounds

비트맵을 자르는 데 사용되는 경계 사각형을 지정합니다. 이 사각형은 배율, 회전 및 대칭 이동이 적용된 후 좌표 공간에 정의됩니다.

Flip

비트맵을 변환하는 데 사용되는 대칭 이동 작업을 지정합니다.

InterpolationMode

비트맵의 크기를 조정하는 데 사용되는 보간 모드를 지정합니다.

Rotation

비트맵을 변환하는 데 사용되는 회전 작업을 지정합니다.

ScaledHeight

크기가 조정된 후 비트맵의 높이를 픽셀 단위로 지정합니다. 회전 및 대칭 이동이 적용되기 전에 원본 이미지의 좌표 공간에 정의됩니다.

ScaledWidth

비트맵의 크기를 조정한 후 비트맵의 너비를 픽셀 단위로 지정합니다. 회전 및 대칭 이동이 적용되기 전에 원본 이미지의 좌표 공간에 정의됩니다.

적용 대상