次の方法で共有


PathGradientBrush 関数

Windows GDI+ は、約 600 個の関数で構成されるフラット API を公開します。これは、Gdiplus.dllに実装され、Gdiplusflat.h で宣言されています。 GDI+ フラット API の関数は、約 40 個の C++ クラスのコレクションによってラップされます。 フラット API で関数を直接呼び出さないでください。 GDI+ を呼び出す場合は常に、C++ ラッパーによって提供されるメソッドと関数を呼び出します。 Microsoft 製品サポート サービスでは、フラット API を直接呼び出すコードのサポートは提供されません。 これらのラッパー メソッドの使用方法の詳細については、「 GDI+ Flat API」を参照してください。

次のフラット API 関数は、 PathGradientBrush C++ クラスによってラップされます。

PathGradientBrush 関数と対応するラッパー メソッド

フラット関数 ラッパー メソッド 解説
GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points, INT count, GpWrapMode wrapMode, GpPathGradient **polyGradient)
PathGradientBrush::P athGradientBrush( IN const PointF* points, IN INT count, IN WrapMode wrapMode = WrapModeClamp)
ポイントの配列に基づいて PathGradientBrush オブジェクトを作成します。 パス グラデーション ブラシのラップ モードを初期化します。
GpStatus WINGDIPAPI GdipCreatePathGradientI(GDIPCONST GpPoint* points, INT count, GpWrapMode wrapMode, GpPathGradient **polyGradient)
PathGradientBrush::P athGradientBrush( IN const Point* points, IN INT count, IN WrapMode wrapMode = WrapModeClamp)
ポイントの配列に基づいて PathGradientBrush オブジェクトを作成します。 パス グラデーション ブラシのラップ モードを初期化します。
GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, GpPathGradient **polyGradient)
PathGradientBrush::P athGradientBrush( IN const GraphicsPath* path )
GraphicsPath オブジェクトに基づいて PathGradientBrush オブジェクトを作成します。
GpStatus WINGDIPAPI GdipGetPathGradientCenterColor( GpPathGradient *brush, ARGB* colors)
Status PathGradientBrush::GetCenterColor(OUT Color* color) const
このパス グラデーション ブラシの中心点の色を取得します。
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor( GpPathGradient *brush, ARGB colors)
Status PathGradientBrush::SetCenterColor(IN const Color color& )
このパス グラデーション ブラシの中心の色を設定します。 中心の色は、ブラシの中心点に表示される色です。
GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount( GpPathGradient *brush, ARGB* color, INT* count)
Status PathGradientBrush::GetSurroundColors(OUT Color* colors, IN OUT INT* count) const
このパス グラデーション ブラシに現在指定されているサラウンドの色を取得します。
GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount( GpPathGradient *brush, GDIPCONST ARGB* color, INT* count)
Status PathGradientBrush::SetSurroundColors(IN const Color* colors, IN OUT INT* count)
このパス グラデーション ブラシのサラウンド カラーを設定します。 囲み色は、ブラシの境界パス上の不連続点に対して指定された色です。
GpStatus WINGDIPAPI GdipGetPathGradientPath(GpPathGradient *brush, GpPath *path)
Status PathGradientBrush::GetGraphicsPath(OUT GraphicsPath* path) const
GDI+ バージョン 1.0 では実装されていません。
GpStatus WINGDIPAPI GdipSetPathGradientPath(GpPathGradient *brush, GDIPCONST GpPath *path)
Status PathGradientBrush::SetGraphicsPath(IN const GraphicsPath* path)
GDI+ バージョン 1.0 では実装されていません。
GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint( GpPathGradient *brush, GpPointF* points)
Status PathGradientBrush::GetCenterPoint(OUT PointF* point) const
このパス グラデーション ブラシの中心点を取得します。
GpStatus WINGDIPAPI GdipGetPathGradientCenterPointI( GpPathGradient *brush, GpPoint* points)
Status PathGradientBrush::GetCenterPoint(OUT Point* point) const
このパス グラデーション ブラシの中心点を取得します。
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint( GpPathGradient *brush, GDIPCONST GpPointF* points)
Status PathGradientBrush::SetCenterPoint(IN const PointF& point)
このパス グラデーション ブラシの中心点を設定します。 既定では、中心点はブラシの境界パスの重心にありますが、中心点はパスの内側または外側の任意の場所に設定できます。
GpStatus WINGDIPAPI GdipSetPathGradientCenterPointI( GpPathGradient *brush, GDIPCONST GpPoint* points)
Status PathGradientBrush::SetCenterPoint(IN const Point& point)
このパス グラデーション ブラシの中心点を設定します。 既定では、中心点はブラシの境界パスの重心にありますが、中心点はパスの内側または外側の任意の場所に設定できます。
GpStatus WINGDIPAPI GdipGetPathGradientRect(GpPathGradient *brush, GpRectF *rect)
Status PathGradientBrush::GetRectangle(OUT RectF* rect) const
このパス グラデーション ブラシの境界パスを囲む最小の四角形を取得します。
GpStatus WINGDIPAPI GdipGetPathGradientRectI(GpPathGradient *brush, GpRect *rect)
Status PathGradientBrush::GetRectangle(OUT Rect* rect) const
このパス グラデーション ブラシの境界パスを囲む最小の四角形を取得します。
GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient *brush, INT* count)
INT PathGradientBrush::GetPointCount() const
このブラシの境界パスを定義するポイントの配列内のポイント数を取得します。
GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorCount(GpPathGradient *brush, INT* count)
INT PathGradientBrush::GetSurroundColorCount() const
このパス グラデーション ブラシの境界パスに指定されている色の数を取得します。
GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient *brush, BOOL useGammaCorrection)
Status PathGradientBrush::SetGammaCorrection(IN BOOL useGammaCorrection)
このパス グラデーション ブラシに対してガンマ補正を有効にするかどうかを指定します。
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *brush, BOOL *useGammaCorrection)
BOOL PathGradientBrush::GetGammaCorrection() const
このパス グラデーション ブラシに対してガンマ補正を有効にするかどうかを指定します。
GpStatus WINGDIPAPI GdipGetPathGradientBlendCount(GpPathGradient *brush, INT *count)
INT PathGradientBrush::GetBlendCount() const
このパス グラデーション ブラシに現在設定されているブレンド 係数の数を取得します。
GpStatus WINGDIPAPI GdipGetPathGradientBlend(GpPathGradient *brush, REAL *blend, REAL *positions, INT count)
PathGradientBrush::GetBlend(OUT REAL* blendFactors, OUT REAL* blendPositions, IN INT count) const
このパス グラデーション ブラシに対して現在設定されているブレンド 係数と対応するブレンド位置を取得します。
GpStatus WINGDIPAPI GdipSetPathGradientBlend(GpPathGradient *brush, GDIPCONST REAL *blend, GDIPCONST REAL *positions, INT count)
Status PathGradientBrush::SetBlend(IN const REAL* blendFactors, IN const REAL* blendPositions, IN INT count)
このパス グラデーション ブラシのブレンド 係数とブレンド位置を設定します。
GpStatus WINGDIPAPI GdipGetPathGradientPresetBlendCount(GpPathGradient *brush, INT *count)
INT PathGradientBrush::GetInterpolationColorCount() const
このパス グラデーション ブラシに現在指定されている既定の色の数を取得します。
GpStatus WINGDIPAPI GdipGetPathGradientPresetBlend(GpPathGradient *brush, ARGB *blend, REAL* positions, INT count)
Status PathGradientBrush::GetInterpolationColors(OUT Color* presetColors, OUT REAL* blendPositions, INT count) const
このパス グラデーション ブラシに現在指定されているプリセットの色とブレンド位置を取得します。
GpStatus WINGDIPAPI GdipSetPathGradientPresetBlend(GpPathGradient *brush, GDIPCONST ARGB *blend, GDIPCONST REAL* positions, INT count)
Status PathGradientBrush::SetInterpolationColors(IN const Color* presetColors, IN const REAL* blendPositions, IN INT count)
このパス グラデーション ブラシの既定の色とブレンド位置を設定します。
GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient *brush, REAL focus, REAL scale)
Status PathGradientBrush::SetBlendBellShape(IN REAL focus, IN REAL scale = 1.0)
このパス グラデーション ブラシのブレンドシェイプを設定します。
GpStatus WINGDIPAPI GdipSetPathGradientLinearBlend(GpPathGradient *brush, REAL focus, REAL scale)
Status PathGradientBrush::SetBlendTriangularShape( IN REAL focus, IN REAL scale = 1.0 )
このパス グラデーション ブラシのブレンドシェイプを設定します。
GpStatus WINGDIPAPI GdipGetPathGradientWrapMode(GpPathGradient *brush, GpWrapMode *wrapmode)
WrapMode PathGradientBrush::GetWrapMode() const
このパス グラデーション ブラシに現在設定されているラップ モードを取得します。
GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *brush, GpWrapMode wrapmode)
Status PathGradientBrush::SetWrapMode(IN WrapMode wrapMode)
このパス グラデーション ブラシのラップ モードを設定します。
GpStatus WINGDIPAPI GdipGetPathGradientTransform(GpPathGradient *brush, GpMatrix *matrix)
Status PathGradientBrush::GetTransform(OUT Matrix *matrix) const
このパス グラデーション ブラシの変換行列を取得します。
GpStatus WINGDIPAPI GdipSetPathGradientTransform(GpPathGradient *brush, GpMatrix *matrix)
Status PathGradientBrush::SetTransform(IN const Matrix* matrix)
このパス グラデーション ブラシの変換行列を設定します。
GpStatus WINGDIPAPI GdipResetPathGradientTransform(GpPathGradient* ブラシ)
Status PathGradientBrush::ResetTransform()
このパス グラデーション ブラシの変換行列を ID 行列にリセットします。 つまり、変換は行われません。
GpStatus WINGDIPAPI GdipMultiplyPathGradientTransform(GpPathGradient* brush, GDIPCONST GpMatrix *matrix, GpMatrixOrder order)
Status PathGradientBrush::MultiplyTransform(IN const Matrix* matrix, IN MatrixOrder order = MatrixOrderPrepend)
ブラシの変換行列を、それ自体と別の行列の積で更新します。
GpStatus WINGDIPAPI GdipTranslatePathGradientTransform(GpPathGradient* brush, REAL dx, REAL dy, GpMatrixOrder order)
Status PathGradientBrush::TranslateTransform(IN REAL dx, IN REAL dy, IN MatrixOrder order = MatrixOrderPrepend)
このブラシの現在の変換行列を、それ自体の積と翻訳行列と共に更新します。
GpStatus WINGDIPAPI GdipScalePathGradientTransform(GpPathGradient* brush, REAL sx, REAL sy, GpMatrixOrder order)
Status PathGradientBrush::ScaleTransform(IN REAL sx, IN REAL sy, IN MatrixOrder order = MatrixOrderPrepend)
このブラシの現在の変換行列を、それ自体の積とスケーリング 行列と共に更新します。
GpStatus WINGDIPAPI GdipRotatePathGradientTransform(GpPathGradient* brush, REAL angle, GpMatrixOrder order)
Status PathGradientBrush::RotateTransform(IN REAL angle, IN MatrixOrder order = MatrixOrderPrepend)
このブラシの現在の変換行列を、それ自体の積と回転行列で更新します。
GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient *brush, REAL* xScale, REAL* yScale)
Status PathGradientBrush::GetFocusScales(OUT REAL* xScale, OUT REAL* yScale) const
このパス グラデーション ブラシのフォーカス スケールを取得します。
GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient *brush, REAL xScale, REAL yScale)
Status PathGradientBrush::SetFocusScales(IN REAL xScale, IN REAL yScale)
このパス グラデーション ブラシのフォーカス スケールを設定します