SkewTransform 클래스

정의

2차원 기울이기를 나타냅니다.

public ref class SkewTransform sealed : Transform
/// [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)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SkewTransform final : Transform
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class SkewTransform final : Transform
[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)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SkewTransform : Transform
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SkewTransform : Transform
Public NotInheritable Class SkewTransform
Inherits Transform
<SkewTransform .../>
상속
Object Platform::Object IInspectable DependencyObject GeneralTransform Transform SkewTransform
특성

Windows 요구 사항

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

예제

이 예제에서는 SkewTransform을 사용하여 텍스트를 기울이는 방법을 설명합니다. 전단이라고도 하는 기울이기는 균일하지 않은 방식으로 좌표 공간을 늘이는 변환입니다. 이 예제에서 두 텍스트 문자열은 x 좌표를 따라 -30도 및 30도 기울어져 있습니다.

<Canvas Margin="30">
    <!-- Skew the text using a SkewTransform. -->
    <TextBlock FontSize="32"
               FontWeight="Bold" 
               Foreground="Maroon"
               Text="Skewed Text">
        <TextBlock.RenderTransform>
            <SkewTransform AngleX="-30" AngleY="0" />
        </TextBlock.RenderTransform>
    </TextBlock>

    <TextBlock Canvas.Top="60"
               FontSize="32"
               FontWeight="Bold" 
               Foreground="Maroon"
               Text="Skewed Text">
        <TextBlock.RenderTransform>
            <SkewTransform AngleX="30" AngleY="0" />
        </TextBlock.RenderTransform>
    </TextBlock>
</Canvas>

변환이 적용된 후 텍스트는 다음과 같이 표시됩니다.

기울이기 변환이 적용된 텍스트

이 예제에서는 런타임에 코드에서 변환에 액세스하고 수정하는 방법을 보여 줍니다. 사각형을 누를 때마다 기울이기는 증가합니다.

<Rectangle PointerPressed="IncreaseSkew"
           Width="50" Height="50" 
           Fill="RoyalBlue">
    <Rectangle.RenderTransform>
        <!-- If you give the transform a name 
             you can access it easily from code. -->
        <SkewTransform x:Name="mySkewTransform" />
    </Rectangle.RenderTransform>
</Rectangle>
public void IncreaseSkew(object sender, RoutedEventArgs e)
{
    mySkewTransform.AngleX = mySkewTransform.AngleX + 5;
}

생성자

SkewTransform()

SkewTransform 클래스의 새 instance 초기화합니다.

속성

AngleX

y-축에서 시계 반대 방향으로 측정된 x-축 기울기 각도를 가져오거나 설정합니다.

AngleXProperty

AngleX 종속성 속성을 식별합니다.

AngleY

x-축에서 시계 반대 방향으로 측정된 y-축 기울기 각도(도)를 가져오거나 설정합니다.

AngleYProperty

AngleY 종속성 속성을 식별합니다.

CenterX

변환 중심의 x 좌표를 가져오거나 설정합니다.

CenterXProperty

CenterX 종속성 속성을 식별합니다.

CenterY

변환 중심의 y 좌표를 가져오거나 설정합니다.

CenterYProperty

CenterY 종속성 속성을 식별합니다.

Dispatcher

이 개체가 연결된 CoreDispatcher 를 가져옵니다. CoreDispatcher는 코드가 비 UI 스레드에서 시작된 경우에도 UI 스레드에서 DependencyObject에 액세스할 수 있는 기능을 나타냅니다.

(다음에서 상속됨 DependencyObject)
Inverse

가능한 경우 이 GeneralTransform의 역 변환을 가져옵니다.

(다음에서 상속됨 GeneralTransform)
InverseCore

파생 또는 사용자 지정 GeneralTransform에서 Inverse의 반환 값에 대한 동작을 구현합니다.

(다음에서 상속됨 GeneralTransform)

메서드

ClearValue(DependencyProperty)

종속성 속성의 로컬 값을 지웁니다.

(다음에서 상속됨 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

애니메이션이 활성화되지 않은 경우 적용되는 종속성 속성에 대해 설정된 모든 기본 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
GetValue(DependencyProperty)

DependencyObject에서 종속성 속성의 현재 유효 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
ReadLocalValue(DependencyProperty)

로컬 값이 설정된 경우 종속성 속성의 로컬 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

DependencyObject instance 특정 DependencyProperty의 변경 내용을 수신 대기하기 위한 알림 함수를 등록합니다.

(다음에서 상속됨 DependencyObject)
SetValue(DependencyProperty, Object)

DependencyObject에서 종속성 속성의 로컬 값을 설정합니다.

(다음에서 상속됨 DependencyObject)
TransformBounds(Rect)

지정한 경계 상자를 변환한 다음 해당 경계 상자를 포함할 수 있는 크기의 축에 맞춰진 경계 상자를 반환합니다.

(다음에서 상속됨 GeneralTransform)
TransformBoundsCore(Rect)

파생된 변환 클래스에서 TransformBounds 동작을 재정의하는 수단을 제공합니다.

(다음에서 상속됨 GeneralTransform)
TransformPoint(Point)

이 변환 개체의 논리를 사용하여 지정된 지점을 변환하고 결과를 반환합니다.

(다음에서 상속됨 GeneralTransform)
TryTransform(Point, Point)

지정한 점의 변환을 시도한 후 변환의 성공 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 GeneralTransform)
TryTransformCore(Point, Point)

파생 변환 클래스에서 TryTransform 동작을 재정의하는 수단을 제공합니다.

(다음에서 상속됨 GeneralTransform)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

RegisterPropertyChangedCallback을 호출하여 이전에 등록된 변경 알림을 취소합니다.

(다음에서 상속됨 DependencyObject)

적용 대상

추가 정보