TextureBrush.RotateTransform 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 TextureBrush 개체의 로컬 기하학적 변환을 지정된 양만큼 회전합니다. 이 메서드는 변환 앞에 회전을 추가합니다.
오버로드
| Name | Description |
|---|---|
| RotateTransform(Single) |
이 TextureBrush 개체의 로컬 기하학적 변환을 지정된 양만큼 회전합니다. 이 메서드는 변환 앞에 회전을 추가합니다. |
| RotateTransform(Single, MatrixOrder) |
지정된 순서로 지정된 양만큼 이 TextureBrush 개체의 로컬 기하학적 변환을 회전합니다. |
RotateTransform(Single)
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
이 TextureBrush 개체의 로컬 기하학적 변환을 지정된 양만큼 회전합니다. 이 메서드는 변환 앞에 회전을 추가합니다.
public:
void RotateTransform(float angle);
public void RotateTransform(float angle);
member this.RotateTransform : single -> unit
Public Sub RotateTransform (angle As Single)
매개 변수
- angle
- Single
회전 각도입니다.
예제
다음 예제는 Windows Forms에서 사용하도록 설계되었으며 이벤트 처리기의 매개 변수 PaintEventArgs 인 필수 ePaint요소입니다. 코드는 다음 작업을 수행합니다.
TextureBrush 개체를 만듭니다.
질감 이미지를 90도 회전합니다.
사각형을 채웁니다.
void RotateTransform_Example1( PaintEventArgs^ e )
{
// Create a TextureBrush object.
TextureBrush^ tBrush = gcnew TextureBrush( gcnew Bitmap( "texture.jpg" ) );
// Rotate the texture image by 90 degrees.
tBrush->RotateTransform( 90 );
// Fill a rectangle with tBrush.
e->Graphics->FillRectangle( tBrush, 0, 0, 100, 100 );
}
public void RotateTransform_Example1(PaintEventArgs e)
{
// Create a TextureBrush object.
TextureBrush tBrush = new TextureBrush(new Bitmap("texture.jpg"));
// Rotate the texture image by 90 degrees.
tBrush.RotateTransform(90);
// Fill a rectangle with tBrush.
e.Graphics.FillRectangle(tBrush, 0, 0, 100, 100);
}
Public Sub RotateTransform_Example1(ByVal e As PaintEventArgs)
' Create a TextureBrush object.
Dim tBrush As New TextureBrush(New Bitmap("texture.jpg"))
' Rotate the texture image by 90 degrees.
tBrush.RotateTransform(90)
' Fill a rectangle with tBrush.
e.Graphics.FillRectangle(tBrush, 0, 0, 100, 100)
End Sub
적용 대상
RotateTransform(Single, MatrixOrder)
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
- Source:
- TextureBrush.cs
지정된 순서로 지정된 양만큼 이 TextureBrush 개체의 로컬 기하학적 변환을 회전합니다.
public:
void RotateTransform(float angle, System::Drawing::Drawing2D::MatrixOrder order);
public void RotateTransform(float angle, System.Drawing.Drawing2D.MatrixOrder order);
member this.RotateTransform : single * System.Drawing.Drawing2D.MatrixOrder -> unit
Public Sub RotateTransform (angle As Single, order As MatrixOrder)
매개 변수
- angle
- Single
회전 각도입니다.
- order
- MatrixOrder
MatrixOrder 회전 행렬을 추가하거나 앞에 추가할지 여부를 지정하는 열거형입니다.
예제
다음 예제는 Windows Forms에서 사용하도록 설계되었으며 이벤트 처리기의 매개 변수 PaintEventArgs 인 필수 ePaint요소입니다. 코드는 다음 작업을 수행합니다.
TextureBrush 개체를 만듭니다.
질감 이미지를 90도 회전합니다.
사각형을 채웁니다.
void RotateTransform_Example2( PaintEventArgs^ e )
{
// Create a TextureBrush object.
TextureBrush^ tBrush = gcnew TextureBrush( gcnew Bitmap( "texture.jpg" ) );
// Rotate the texture image by 90 degrees.
tBrush->RotateTransform( 90, MatrixOrder::Prepend );
// Fill a rectangle with tBrush.
e->Graphics->FillRectangle( tBrush, 0, 0, 100, 100 );
}
public void RotateTransform_Example2(PaintEventArgs e)
{
// Create a TextureBrush object.
TextureBrush tBrush = new TextureBrush(new Bitmap("texture.jpg"));
// Rotate the texture image by 90 degrees.
tBrush.RotateTransform(90, MatrixOrder.Prepend);
// Fill a rectangle with tBrush.
e.Graphics.FillRectangle(tBrush, 0, 0, 100, 100);
}
Public Sub RotateTransform_Example2(ByVal e As PaintEventArgs)
' Create a TextureBrush object.
Dim tBrush As New TextureBrush(New Bitmap("texture.jpg"))
' Rotate the texture image by 90 degrees.
tBrush.RotateTransform(90, MatrixOrder.Prepend)
' Fill a rectangle with tBrush.
e.Graphics.FillRectangle(tBrush, 0, 0, 100, 100)
End Sub