#include <gdiplusbrush.h>
|
| LinearGradientBrush (const PointF &point1, const PointF &point2, const Color &color1, const Color &color2) |
|
| LinearGradientBrush (const Rect &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable=FALSE) |
|
| LinearGradientBrush (const Rect &rect, const Color &color1, const Color &color2, LinearGradientMode mode) |
|
| LinearGradientBrush (const Point &point1, const Point &point2, const Color &color1, const Color &color2) |
|
| LinearGradientBrush (const RectF &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable=FALSE) |
|
| LinearGradientBrush (const RectF &rect, const Color &color1, const Color &color2, LinearGradientMode mode) |
|
Status | GetBlend (REAL *blendFactors, REAL *blendPositions, INT count) |
|
INT | GetBlendCount () const |
|
BOOL | GetGammaCorrection () const |
|
INT | GetInterpolationColorCount () const |
|
Status | GetInterpolationColors (Color *presetColors, REAL *blendPositions, INT count) const |
|
Status | GetLinearColors (Color *colors) const |
|
Status | GetRectangle (Rect *rect) const |
|
Status | GetRectangle (RectF *rect) const |
|
Status | GetTransform (Matrix *matrix) const |
|
WrapMode | GetWrapMode () const |
|
Status | MultiplyTransform (const Matrix *matrix, MatrixOrder order) |
|
Status | ResetTransform () |
|
Status | RotateTransform (REAL angle, MatrixOrder order) |
|
Status | ScaleTransform (REAL sx, REAL sy, MatrixOrder order=MatrixOrderPrepend) |
|
Status | SetBlend (const REAL *blendFactors, const REAL *blendPositions, INT count) |
|
Status | SetBlendBellShape (REAL focus, REAL scale) |
|
Status | SetBlendTriangularShape (REAL focus, REAL scale=1.0f) |
|
Status | SetGammaCorrection (BOOL useGammaCorrection) |
|
Status | SetInterpolationColors (const Color *presetColors, const REAL *blendPositions, INT count) |
|
Status | SetLinearColors (const Color &color1, const Color &color2) |
|
Status | SetTransform (const Matrix *matrix) |
|
Status | SetWrapMode (WrapMode wrapMode) |
|
Status | TranslateTransform (REAL dx, REAL dy, MatrixOrder order=MatrixOrderPrepend) |
|
Status | SetLinearPoints (const PointF &point1, const PointF &point2) |
|
Status | GetLinearPoints (PointF *points) const |
|
Status | SetLinearPoints (const Point &point1, const Point &point2) |
|
Status | GetLinearPoints (Point *points) const |
|
virtual | ~Brush () |
|
Brush * | Clone () const |
|
Status | GetLastStatus () const |
|
BrushType | GetType () const |
|
void | operator delete (void *in_pVoid) |
|
void | operator delete[] (void *in_pVoid) |
|
void * | operator new (size_t in_size) |
|
void * | operator new[] (size_t in_size) |
|
Definition at line 164 of file gdiplusbrush.h.
◆ LinearGradientBrush() [1/6]
Definition at line 169 of file gdiplusbrush.h.
170 {
173 &point1, &point2, color1.GetValue(), color2.GetValue(),
WrapModeTile, &brush);
175 }
void SetNativeBrush(GpBrush *brush)
◆ LinearGradientBrush() [2/6]
◆ LinearGradientBrush() [3/6]
◆ LinearGradientBrush() [4/6]
◆ LinearGradientBrush() [5/6]
◆ LinearGradientBrush() [6/6]
◆ GetBlend()
Status LinearGradientBrush::GetBlend |
( |
REAL * |
blendFactors, |
|
|
REAL * |
blendPositions, |
|
|
INT |
count |
|
) |
| |
|
inline |
Definition at line 228 of file gdiplusbrush.h.
229 {
231 return SetStatus(DllExports::GdipGetLineBlend(gradient, blendFactors, blendPositions,
count));
232 }
Status SetStatus(Status status) const
GpLineGradient * GetNativeGradient() const
GLuint GLuint GLsizei count
◆ GetBlendCount()
INT LinearGradientBrush::GetBlendCount |
( |
| ) |
const |
|
inline |
◆ GetGammaCorrection()
BOOL LinearGradientBrush::GetGammaCorrection |
( |
| ) |
const |
|
inline |
Definition at line 244 of file gdiplusbrush.h.
245 {
246 BOOL useGammaCorrection;
248 SetStatus(DllExports::GdipGetLineGammaCorrection(gradient, &useGammaCorrection));
249 return useGammaCorrection;
250 }
◆ GetInterpolationColorCount()
INT LinearGradientBrush::GetInterpolationColorCount |
( |
| ) |
const |
|
inline |
◆ GetInterpolationColors()
Status LinearGradientBrush::GetInterpolationColors |
( |
Color * |
presetColors, |
|
|
REAL * |
blendPositions, |
|
|
INT |
count |
|
) |
| const |
|
inline |
◆ GetLinearColors()
Status LinearGradientBrush::GetLinearColors |
( |
Color * |
colors | ) |
const |
|
inline |
Definition at line 268 of file gdiplusbrush.h.
269 {
270 if (!colors)
272
274
276 SetStatus(DllExports::GdipGetLineColors(gradient, argb));
278 {
279 colors[0] =
Color(argb[0]);
280 colors[1] =
Color(argb[1]);
281 }
283 }
◆ GetLinearPoints() [1/2]
Status LinearGradientBrush::GetLinearPoints |
( |
Point * |
points | ) |
const |
|
inline |
Definition at line 440 of file gdiplusbrush.h.
441 {
442#if 1
444#else
447#endif
448 }
GLsizei const GLfloat * points
◆ GetLinearPoints() [2/2]
Status LinearGradientBrush::GetLinearPoints |
( |
PointF * |
points | ) |
const |
|
inline |
Definition at line 418 of file gdiplusbrush.h.
419 {
420#if 1
422#else
425#endif
426 }
◆ GetNativeGradient()
Definition at line 452 of file gdiplusbrush.h.
Referenced by GetBlend(), GetBlendCount(), GetGammaCorrection(), GetInterpolationColorCount(), GetLinearColors(), GetLinearPoints(), GetRectangle(), GetTransform(), GetWrapMode(), MultiplyTransform(), ResetTransform(), RotateTransform(), ScaleTransform(), SetBlend(), SetBlendBellShape(), SetBlendTriangularShape(), SetGammaCorrection(), SetLinearColors(), SetLinearPoints(), SetTransform(), SetWrapMode(), and TranslateTransform().
◆ GetRectangle() [1/2]
Status LinearGradientBrush::GetRectangle |
( |
Rect * |
rect | ) |
const |
|
inline |
◆ GetRectangle() [2/2]
Status LinearGradientBrush::GetRectangle |
( |
RectF * |
rect | ) |
const |
|
inline |
◆ GetTransform()
Status LinearGradientBrush::GetTransform |
( |
Matrix * |
matrix | ) |
const |
|
inline |
Definition at line 300 of file gdiplusbrush.h.
301 {
304 }
friend GpBrush *& getNat(const Brush *brush)
◆ GetWrapMode()
WrapMode LinearGradientBrush::GetWrapMode |
( |
| ) |
const |
|
inline |
Definition at line 307 of file gdiplusbrush.h.
308 {
309
312 SetStatus(DllExports::GdipGetLineWrapMode(gradient, &wrapMode));
313 return wrapMode;
314 }
◆ MultiplyTransform()
Definition at line 317 of file gdiplusbrush.h.
318 {
321 }
GLuint GLdouble GLdouble GLint GLint order
◆ ResetTransform()
Status LinearGradientBrush::ResetTransform |
( |
| ) |
|
|
inline |
◆ RotateTransform()
◆ ScaleTransform()
◆ SetBlend()
Definition at line 345 of file gdiplusbrush.h.
346 {
348 return SetStatus(DllExports::GdipSetLineBlend(gradient, blendFactors, blendPositions,
count));
349 }
◆ SetBlendBellShape()
Status LinearGradientBrush::SetBlendBellShape |
( |
REAL |
focus, |
|
|
REAL |
scale |
|
) |
| |
|
inline |
Definition at line 352 of file gdiplusbrush.h.
353 {
355 return SetStatus(DllExports::GdipSetLineSigmaBlend(gradient, focus,
scale));
356 }
GLenum GLenum GLenum GLenum GLenum scale
◆ SetBlendTriangularShape()
Status LinearGradientBrush::SetBlendTriangularShape |
( |
REAL |
focus, |
|
|
REAL |
scale = 1.0f |
|
) |
| |
|
inline |
◆ SetGammaCorrection()
Status LinearGradientBrush::SetGammaCorrection |
( |
BOOL |
useGammaCorrection | ) |
|
|
inline |
Definition at line 366 of file gdiplusbrush.h.
367 {
369 return SetStatus(DllExports::GdipSetLineGammaCorrection(gradient, useGammaCorrection));
370 }
◆ SetInterpolationColors()
◆ SetLinearColors()
Definition at line 379 of file gdiplusbrush.h.
380 {
382 return SetStatus(DllExports::GdipSetLineColors(gradient, color1.GetValue(), color2.GetValue()));
383 }
◆ SetLinearPoints() [1/2]
Definition at line 429 of file gdiplusbrush.h.
430 {
431#if 1
433#else
435 return SetStatus(DllExports::GdipSetLinePointsI(gradient, &point1, &point2));
436#endif
437 }
◆ SetLinearPoints() [2/2]
Definition at line 407 of file gdiplusbrush.h.
408 {
409#if 1
411#else
413 return SetStatus(DllExports::GdipSetLinePoints(gradient, &point1, &point2));
414#endif
415 }
◆ SetTransform()
◆ SetWrapMode()
Definition at line 393 of file gdiplusbrush.h.
394 {
396 return SetStatus(DllExports::GdipSetLineWrapMode(gradient, wrapMode));
397 }
◆ TranslateTransform()
◆ Pen
The documentation for this class was generated from the following file: