Graphics::GetSmoothingMode 메서드(gdiplusgraphics.h)

Graphics::GetSmoothingMode 메서드는 평활화(앤티앨리어싱)가 Graphics 개체에 적용되는지 여부를 결정합니다.

구문

SmoothingMode GetSmoothingMode();

반환 값

형식: SmoothingMode

Graphics 개체에 스무딩(앤티앨리어싱)이 적용되면 이 메서드는 SmoothingModeAntiAlias를 반환합니다. 이 Graphics 개체에 스무딩(앤티앨리어싱)이 적용되지 않으면 이 메서드는 SmoothingModeNone을 반환합니다. SmoothingModeAntiAlias 및 SmoothingModeNone은 SmoothingMode 열거형의 요소입니다.

설명

텍스트의 렌더링 품질 수준을 얻으려면 Graphics::GetTextRenderingHint 메서드를 사용합니다.

예제

다음 예제에서는 스무딩 모드를 고속으로 설정하고 타원을 그립니다. 그런 다음, 다듬기 모드를 가져오고, 고품질로 변경하고, 두 번째 타원을 그려 차이점을 보여 줍니다.

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

   // Set the smoothing mode to SmoothingModeHighSpeed.
   graphics.SetSmoothingMode(SmoothingModeHighSpeed);

   // Draw an ellipse.
   graphics.DrawEllipse(&Pen(Color(255, 0, 0, 0), 3), Rect(10, 0, 200, 100));

   // Get the smoothing mode.
   SmoothingMode mode = graphics.GetSmoothingMode();


   // Test mode to see whether smoothing has been set for the Graphics object.
   if (mode == SmoothingModeAntiAlias)
   {
   graphics.SetSmoothingMode(SmoothingModeHighQuality);
   }

   // Draw an ellipse to demonstrate the difference.
   graphics.DrawEllipse(&Pen(Color::Red, 3), Rect(220, 0, 200, 100));
}

요구 사항

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

추가 정보

선과 곡선의 앤티 앨리어싱

그래픽

이미지

비트맵 로드 및 표시