ReactOS  0.4.15-dev-1152-g6c94e4f
ImageAttributes Class Reference

#include <gdiplusimageattributes.h>

Inheritance diagram for ImageAttributes:
Collaboration diagram for ImageAttributes:

Public Member Functions

 ImageAttributes ()
 
 ~ImageAttributes ()
 
Status ClearBrushRemapTable ()
 
Status ClearColorKey (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status ClearColorMatrices (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status ClearColorMatrix (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status ClearGamma (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status ClearNoOp (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status ClearOutputChannel (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status ClearOutputChannelColorProfile (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status ClearRemapTable (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status ClearThreshold (ColorAdjustType type=ColorAdjustTypeDefault)
 
ImageAttributesClone ()
 
Status GetAdjustedPalette (ColorPalette *colorPalette, ColorAdjustType colorAdjustType)
 
Status GetLastStatus ()
 
Status Reset (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetBrushRemapTable (UINT mapSize, ColorMap *map)
 
Status SetColorKey (const Color &colorLow, const Color &colorHigh, ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetColorMatrices (const ColorMatrix *colorMatrix, const ColorMatrix *grayMatrix, ColorMatrixFlags mode=ColorMatrixFlagsDefault, ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetColorMatrix (const ColorMatrix *colorMatrix, ColorMatrixFlags mode=ColorMatrixFlagsDefault, ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetGamma (REAL gamma, ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetNoOp (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetOutputChannel (ColorChannelFlags channelFlags, ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetOutputChannelColorProfile (const WCHAR *colorProfileFilename, ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetRemapTable (UINT mapSize, const ColorMap *map, ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetThreshold (REAL threshold, ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetToIdentity (ColorAdjustType type=ColorAdjustTypeDefault)
 
Status SetWrapMode (WrapMode wrap, const Color &color=Color(), BOOL clamp=FALSE)
 
- Public Member Functions inherited from GdiplusBase
void operator delete (void *in_pVoid)
 
void operator delete[] (void *in_pVoid)
 
voidoperator new (size_t in_size)
 
voidoperator new[] (size_t in_size)
 

Protected Member Functions

 ImageAttributes (GpImageAttributes *imageAttr, Status status)
 
VOID SetNativeImageAttr (GpImageAttributes *imageAttr)
 
Status SetStatus (Status status) const
 

Protected Attributes

GpImageAttributesnativeImageAttr
 
Status lastStatus
 

Private Member Functions

 ImageAttributes (const ImageAttributes &)
 
ImageAttributesoperator= (const ImageAttributes &)
 

Friends

class TextureBrush
 
GpImageAttributes *& getNat (const ImageAttributes *ia)
 

Detailed Description

Definition at line 22 of file gdiplusimageattributes.h.

Constructor & Destructor Documentation

◆ ImageAttributes() [1/3]

ImageAttributes::ImageAttributes ( )
inline

Definition at line 27 of file gdiplusimageattributes.h.

28  {
30  }
GpImageAttributes * nativeImageAttr
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes **imageattr)

Referenced by Clone().

◆ ~ImageAttributes()

ImageAttributes::~ImageAttributes ( )
inline

Definition at line 32 of file gdiplusimageattributes.h.

33  {
35  }
GpImageAttributes * nativeImageAttr
GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes *imageattr)

◆ ImageAttributes() [2/3]

ImageAttributes::ImageAttributes ( GpImageAttributes imageAttr,
Status  status 
)
inlineprotected

Definition at line 223 of file gdiplusimageattributes.h.

223  : nativeImageAttr(imageAttr), lastStatus(status)
224  {
225  }
GpImageAttributes * nativeImageAttr
Definition: ps.c:97

◆ ImageAttributes() [3/3]

ImageAttributes::ImageAttributes ( const ImageAttributes )
private

Member Function Documentation

◆ ClearBrushRemapTable()

Status ImageAttributes::ClearBrushRemapTable ( )
inline

Definition at line 38 of file gdiplusimageattributes.h.

39  {
41  }
Status ClearRemapTable(ColorAdjustType type=ColorAdjustTypeDefault)

◆ ClearColorKey()

Status ImageAttributes::ClearColorKey ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 44 of file gdiplusimageattributes.h.

45  {
47  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipSetImageAttributesColorKeys(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, ARGB colorLow, ARGB colorHigh)

◆ ClearColorMatrices()

Status ImageAttributes::ClearColorMatrices ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 50 of file gdiplusimageattributes.h.

51  {
54  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, GDIPCONST ColorMatrix *colorMatrix, GDIPCONST ColorMatrix *grayMatrix, ColorMatrixFlags flags)
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const

◆ ClearColorMatrix()

Status ImageAttributes::ClearColorMatrix ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 57 of file gdiplusimageattributes.h.

58  {
61  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, GDIPCONST ColorMatrix *colorMatrix, GDIPCONST ColorMatrix *grayMatrix, ColorMatrixFlags flags)
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const

◆ ClearGamma()

Status ImageAttributes::ClearGamma ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 64 of file gdiplusimageattributes.h.

65  {
67  }
GpStatus WINGDIPAPI GdipSetImageAttributesGamma(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, REAL gamma)
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const

◆ ClearNoOp()

Status ImageAttributes::ClearNoOp ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 70 of file gdiplusimageattributes.h.

71  {
73  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
GpStatus WINGDIPAPI GdipSetImageAttributesNoOp(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag)
Status SetStatus(Status status) const

◆ ClearOutputChannel()

Status ImageAttributes::ClearOutputChannel ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 76 of file gdiplusimageattributes.h.

77  {
78  return SetStatus(
80  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannel(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags)

◆ ClearOutputChannelColorProfile()

Status ImageAttributes::ClearOutputChannelColorProfile ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 83 of file gdiplusimageattributes.h.

84  {
85  return SetStatus(
87  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannelColorProfile(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, GDIPCONST WCHAR *colorProfileFilename)
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const

◆ ClearRemapTable()

Status ImageAttributes::ClearRemapTable ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 90 of file gdiplusimageattributes.h.

91  {
93  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipSetImageAttributesRemapTable(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, UINT mapSize, GDIPCONST ColorMap *map)

Referenced by ClearBrushRemapTable().

◆ ClearThreshold()

Status ImageAttributes::ClearThreshold ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 96 of file gdiplusimageattributes.h.

97  {
99  }
GpStatus WINGDIPAPI GdipSetImageAttributesThreshold(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, REAL threshold)
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define FALSE
Definition: types.h:117
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const

◆ Clone()

ImageAttributes* ImageAttributes::Clone ( )
inline

Definition at line 102 of file gdiplusimageattributes.h.

103  {
104  GpImageAttributes *clone = NULL;
106  if (lastStatus != Ok)
107  return NULL;
108 
109  ImageAttributes *newImageAttr = new ImageAttributes(clone, lastStatus);
110  if (newImageAttr == NULL)
112 
113  return newImageAttr;
114  }
GpImageAttributes * nativeImageAttr
GpStatus WINGDIPAPI GdipCloneImageAttributes(GDIPCONST GpImageAttributes *imageattr, GpImageAttributes **cloneImageattr)
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes *imageattr)

◆ GetAdjustedPalette()

Status ImageAttributes::GetAdjustedPalette ( ColorPalette colorPalette,
ColorAdjustType  colorAdjustType 
)
inline

Definition at line 117 of file gdiplusimageattributes.h.

118  {
119  return SetStatus(
121  }
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipGetImageAttributesAdjustedPalette(GpImageAttributes *imageattr, ColorPalette *palette, ColorAdjustType type)

◆ GetLastStatus()

Status ImageAttributes::GetLastStatus ( )
inline

Definition at line 124 of file gdiplusimageattributes.h.

125  {
126  return lastStatus;
127  }

◆ operator=()

◆ Reset()

Status ImageAttributes::Reset ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 130 of file gdiplusimageattributes.h.

131  {
133  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipResetImageAttributes(GpImageAttributes *imageAttr, ColorAdjustType type)

◆ SetBrushRemapTable()

Status ImageAttributes::SetBrushRemapTable ( UINT  mapSize,
ColorMap map 
)
inline

Definition at line 136 of file gdiplusimageattributes.h.

137  {
138  return SetRemapTable(mapSize, map, ColorAdjustTypeBrush);
139  }
Definition: _map.h:44
Status SetRemapTable(UINT mapSize, const ColorMap *map, ColorAdjustType type=ColorAdjustTypeDefault)

◆ SetColorKey()

Status ImageAttributes::SetColorKey ( const Color colorLow,
const Color colorHigh,
ColorAdjustType  type = ColorAdjustTypeDefault 
)
inline

Definition at line 142 of file gdiplusimageattributes.h.

143  {
145  nativeImageAttr, type, TRUE, colorLow.GetValue(), colorHigh.GetValue()));
146  }
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipSetImageAttributesColorKeys(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, ARGB colorLow, ARGB colorHigh)

◆ SetColorMatrices()

Status ImageAttributes::SetColorMatrices ( const ColorMatrix colorMatrix,
const ColorMatrix grayMatrix,
ColorMatrixFlags  mode = ColorMatrixFlagsDefault,
ColorAdjustType  type = ColorAdjustTypeDefault 
)
inline

Definition at line 149 of file gdiplusimageattributes.h.

154  {
155  return SetStatus(
157  }
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, GDIPCONST ColorMatrix *colorMatrix, GDIPCONST ColorMatrix *grayMatrix, ColorMatrixFlags flags)
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const
GLenum mode
Definition: glext.h:6217

◆ SetColorMatrix()

Status ImageAttributes::SetColorMatrix ( const ColorMatrix colorMatrix,
ColorMatrixFlags  mode = ColorMatrixFlagsDefault,
ColorAdjustType  type = ColorAdjustTypeDefault 
)
inline

Definition at line 160 of file gdiplusimageattributes.h.

164  {
165  return SetStatus(
167  }
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, GDIPCONST ColorMatrix *colorMatrix, GDIPCONST ColorMatrix *grayMatrix, ColorMatrixFlags flags)
GpImageAttributes * nativeImageAttr
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const
GLenum mode
Definition: glext.h:6217

◆ SetGamma()

Status ImageAttributes::SetGamma ( REAL  gamma,
ColorAdjustType  type = ColorAdjustTypeDefault 
)
inline

Definition at line 170 of file gdiplusimageattributes.h.

171  {
173  }
GpStatus WINGDIPAPI GdipSetImageAttributesGamma(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, REAL gamma)
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const

◆ SetNativeImageAttr()

VOID ImageAttributes::SetNativeImageAttr ( GpImageAttributes imageAttr)
inlineprotected

Definition at line 228 of file gdiplusimageattributes.h.

229  {
230  nativeImageAttr = imageAttr;
231  }
GpImageAttributes * nativeImageAttr

◆ SetNoOp()

Status ImageAttributes::SetNoOp ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 176 of file gdiplusimageattributes.h.

177  {
179  }
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
GpStatus WINGDIPAPI GdipSetImageAttributesNoOp(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag)
Status SetStatus(Status status) const

◆ SetOutputChannel()

Status ImageAttributes::SetOutputChannel ( ColorChannelFlags  channelFlags,
ColorAdjustType  type = ColorAdjustTypeDefault 
)
inline

Definition at line 182 of file gdiplusimageattributes.h.

183  {
185  }
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannel(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags)

◆ SetOutputChannelColorProfile()

Status ImageAttributes::SetOutputChannelColorProfile ( const WCHAR colorProfileFilename,
ColorAdjustType  type = ColorAdjustTypeDefault 
)
inline

Definition at line 188 of file gdiplusimageattributes.h.

189  {
191  nativeImageAttr, type, TRUE, colorProfileFilename));
192  }
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannelColorProfile(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, GDIPCONST WCHAR *colorProfileFilename)
Status SetStatus(Status status) const

◆ SetRemapTable()

Status ImageAttributes::SetRemapTable ( UINT  mapSize,
const ColorMap map,
ColorAdjustType  type = ColorAdjustTypeDefault 
)
inline

Definition at line 195 of file gdiplusimageattributes.h.

196  {
198  }
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipSetImageAttributesRemapTable(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, UINT mapSize, GDIPCONST ColorMap *map)
Definition: _map.h:44

Referenced by SetBrushRemapTable().

◆ SetStatus()

◆ SetThreshold()

Status ImageAttributes::SetThreshold ( REAL  threshold,
ColorAdjustType  type = ColorAdjustTypeDefault 
)
inline

Definition at line 201 of file gdiplusimageattributes.h.

202  {
204  }
GpStatus WINGDIPAPI GdipSetImageAttributesThreshold(GpImageAttributes *imageAttr, ColorAdjustType type, BOOL enableFlag, REAL threshold)
#define TRUE
Definition: types.h:120
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const

◆ SetToIdentity()

Status ImageAttributes::SetToIdentity ( ColorAdjustType  type = ColorAdjustTypeDefault)
inline

Definition at line 207 of file gdiplusimageattributes.h.

208  {
210  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpImageAttributes * nativeImageAttr
Status SetStatus(Status status) const
GpStatus WINGDIPAPI GdipSetImageAttributesToIdentity(GpImageAttributes *imageAttr, ColorAdjustType type)

◆ SetWrapMode()

Status ImageAttributes::SetWrapMode ( WrapMode  wrap,
const Color color = Color(),
BOOL  clamp = FALSE 
)
inline

Definition at line 213 of file gdiplusimageattributes.h.

214  {
215  ARGB argb = color.GetValue();
217  }
GpStatus WINGDIPAPI GdipSetImageAttributesWrapMode(GpImageAttributes *imageAttr, WrapMode wrap, ARGB argb, BOOL clamp)
GpImageAttributes * nativeImageAttr
GLuint color
Definition: glext.h:6243
GLenum clamp
Definition: glext.h:6216
Status SetStatus(Status status) const
#define wrap(journal, var)
Definition: recovery.c:207
DWORD ARGB

Friends And Related Function Documentation

◆ getNat

GpImageAttributes*& getNat ( const ImageAttributes ia)
friend

Definition at line 249 of file gdiplusimageattributes.h.

250  {
251  return const_cast<ImageAttributes *>(ia)->nativeImageAttr;
252  }

◆ TextureBrush

friend class TextureBrush
friend

Definition at line 25 of file gdiplusimageattributes.h.

Member Data Documentation

◆ lastStatus

Status ImageAttributes::lastStatus
mutableprotected

Definition at line 221 of file gdiplusimageattributes.h.

Referenced by Clone(), GetLastStatus(), ImageAttributes(), and SetStatus().

◆ nativeImageAttr


The documentation for this class was generated from the following file: