Graphics::SetSmoothingMode メソッド (gdiplusgraphics.h)

Graphics::SetSmoothingMode メソッドは、Graphics オブジェクトのレンダリング品質を設定します。

構文

Status SetSmoothingMode(
  [in] SmoothingMode smoothingMode
);

パラメーター

[in] smoothingMode

種類: SmoothingMode

スムージング (アンチエイリアシング) を線と曲線に適用するかどうかを指定する SmoothingMode 列挙体の要素。

戻り値

種類: 状態

メソッドが成功した場合は、 Status 列挙の要素である Ok を返します。

メソッドが失敗した場合は、 Status 列挙体の他の要素のいずれかを返します。

注釈

テキストのレンダリング品質を取得するには、 Graphics::GetTextRenderingHint メソッドを 使用します。 スムージング モードの品質レベルが高いほど、パフォーマンスが低下します。

次の例では、スムージング モードを 2 つの異なる値に設定し、省略記号を塗りつぶして各モードを示します。

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

   // Set the smoothing mode to SmoothingModeHighSpeed, and fill an ellipse.
   graphics.SetSmoothingMode(SmoothingModeHighSpeed);
   graphics.FillEllipse(&SolidBrush(Color(255, 0, 0, 0)), 0, 0, 200, 100);

   // Set the smoothing mode to SmoothingModeHighQuality, and fill an ellipse.
   graphics.SetSmoothingMode(SmoothingModeHighQuality);
   graphics.FillEllipse(&SolidBrush(Color(255, 0, 0, 0)), 200, 0, 200, 100);
}

要件

要件
サポートされている最小のクライアント Windows XP、Windows 2000 Professional [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows 2000 Server [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー gdiplusgraphics.h (Gdiplus.h を含む)
Library Gdiplus.lib
[DLL] Gdiplus.dll

こちらもご覧ください

直線と曲線のアンチエイリアシング

グラフィックス

Graphics::GetSmoothingMode

ビットマップの読み込みと表示