TextureBrush::ResetTransform 메서드(gdiplusbrush.h)

TextureBrush::ResetTransform 메서드는 이 텍스처 브러시의 변환 매트릭스를 ID 행렬로 다시 설정합니다. 즉, 변환이 수행되지 않습니다.

구문

Status ResetTransform();

반환 값

형식: 상태

메서드가 성공하면 Status 열거형의 요소인 Ok를 반환합니다.

메서드가 실패하면 Status 열거형의 다른 요소 중 하나를 반환합니다.

설명

변환 매트릭스를 ID 행렬로 설정하면 변환이 수행되지 않습니다. 이 메서드는 조정(크기 조정, 회전 등)을 수행하기 전에 변환을 다시 설정하는 데 자주 사용됩니다.

예제

다음 예제에서는 텍스처 브러시를 만들고 브러시의 변환을 설정합니다. 다음으로, 코드는 변환된 브러시를 사용하여 사각형을 채웁니다. 그런 다음 코드는 브러시의 변환을 다시 설정하며 변형되지 않은 브러시를 사용하여 사각형을 채웁니다.

VOID Example_ResetTransform(HDC hdc)
{
   Graphics graphics(hdc);

   // Create a texture brush, and set its transformation.
   Image image(L"HouseAndTree.Gif");
   TextureBrush textureBrush(&image);
   textureBrush.RotateTransform(30);

   // Fill a rectangle with the transformed texture brush.
   graphics.FillRectangle(&textureBrush, 0, 0, 200, 100);

   textureBrush.ResetTransform();
   
   // Fill a rectangle with the texture brush (no transformation).
   graphics.FillRectangle(&textureBrush, 250, 0, 200, 100);
}

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows XP, Windows 2000 Professional [데스크톱 앱만 해당]
지원되는 최소 서버 Windows 2000 Server[데스크톱 앱만]
대상 플랫폼 Windows
헤더 gdiplusbrush.h(Gdiplus.h 포함)
라이브러리 Gdiplus.lib
DLL Gdiplus.dll

추가 정보

브러시 및 채워진 도형

좌표계 및 변환

이미지 텍스처로 도형 채우기

이미지

행렬

MatrixOrder

TextureBrush

TextureBrush::GetTransform

TextureBrush::MultiplyTransform

TextureBrush::RotateTransform

TextureBrush::ScaleTransform

TextureBrush::SetTransform

TextureBrush::TranslateTransform

변환