mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
- Update headers
svn path=/trunk/; revision=32950
This commit is contained in:
parent
64d6a8dc59
commit
f1f7552a95
6 changed files with 65 additions and 267 deletions
|
@ -34,6 +34,7 @@ namespace Gdiplus
|
||||||
#include "gdipluspixelformats.h"
|
#include "gdipluspixelformats.h"
|
||||||
#include "gdiplusmetaheader.h"
|
#include "gdiplusmetaheader.h"
|
||||||
#include "gdiplusimaging.h"
|
#include "gdiplusimaging.h"
|
||||||
|
#include "gdipluscolor.h"
|
||||||
#include "gdipluscolormatrix.h"
|
#include "gdipluscolormatrix.h"
|
||||||
#include "gdiplusgpstubs.h"
|
#include "gdiplusgpstubs.h"
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ namespace Gdiplus
|
||||||
#include "gdipluspixelformats.h"
|
#include "gdipluspixelformats.h"
|
||||||
#include "gdiplusmetaheader.h"
|
#include "gdiplusmetaheader.h"
|
||||||
#include "gdiplusimaging.h"
|
#include "gdiplusimaging.h"
|
||||||
|
#include "gdipluscolor.h"
|
||||||
#include "gdipluscolormatrix.h"
|
#include "gdipluscolormatrix.h"
|
||||||
#include "gdiplusgpstubs.h"
|
#include "gdiplusgpstubs.h"
|
||||||
|
|
||||||
|
|
|
@ -1,279 +1,51 @@
|
||||||
/*
|
/*
|
||||||
* GdiPlusColor.h
|
* Copyright (C) 2808 Google (Lei Zhang)
|
||||||
*
|
*
|
||||||
* Windows GDI+
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This file is part of the w32api package.
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS NOT COPYRIGHTED
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
*
|
* License along with this library; if not, write to the Free Software
|
||||||
* This source code is offered for use in the public domain. You may
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
* use, modify or distribute it freely.
|
|
||||||
*
|
|
||||||
* This code is distributed in the hope that it will be useful but
|
|
||||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
|
||||||
* DISCLAIMED. This includes but is not limited to warranties of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _GDIPLUSCOLOR_H
|
#ifndef _GDIPLUSCOLOR_H
|
||||||
#define _GDIPLUSCOLOR_H
|
#define _GDIPLUSCOLOR_H
|
||||||
|
|
||||||
#if __GNUC__ >= 3
|
enum ColorChannelFlags
|
||||||
#pragma GCC system_header
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
ColorChannelFlagsC = 0,
|
|
||||||
ColorChannelFlagsM = 1,
|
|
||||||
ColorChannelFlagsY = 2,
|
|
||||||
ColorChannelFlagsK = 3,
|
|
||||||
ColorChannelFlagsLast = 4
|
|
||||||
} ColorChannelFlags;
|
|
||||||
|
|
||||||
|
|
||||||
class Color
|
|
||||||
{
|
{
|
||||||
public:
|
ColorChannelFlagsC,
|
||||||
Color(BYTE a, BYTE r, BYTE g, BYTE b)
|
ColorChannelFlagsM,
|
||||||
{
|
ColorChannelFlagsY,
|
||||||
color = MakeARGB(a, r, g, b);
|
ColorChannelFlagsK,
|
||||||
}
|
ColorChannelFlagsLast
|
||||||
|
|
||||||
Color(VOID)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Color(BYTE r, BYTE g, BYTE b)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Color(ARGB argb)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
BYTE GetA(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BYTE GetAlpha(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BYTE GetB(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BYTE GetBlue(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BYTE GetG(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BYTE GetGreen(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BYTE GetR(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
BYTE GetRed(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
ARGB GetValue(VOID) const
|
|
||||||
{
|
|
||||||
return color;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
AlphaShift = 24,
|
|
||||||
RedShift = 16,
|
|
||||||
GreenShift = 8,
|
|
||||||
BlueShift = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
static ARGB MakeARGB(BYTE a, BYTE r, BYTE g, BYTE b)
|
|
||||||
{
|
|
||||||
return (((ARGB)(b) << BlueShift) |
|
|
||||||
((ARGB)(g) << GreenShift) |
|
|
||||||
((ARGB)(r) << RedShift) |
|
|
||||||
((ARGB)(a) << AlphaShift));
|
|
||||||
}
|
|
||||||
|
|
||||||
VOID SetFromCOLORREF(COLORREF rgb)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
VOID SetValue(ARGB argb)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
COLORREF ToCOLORREF(VOID)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
AliceBlue = 0xFFF0F8FF,
|
|
||||||
AntiqueWhite = 0xFFFAEBD7,
|
|
||||||
Aqua = 0xFF00FFFF,
|
|
||||||
Aquamarine = 0xFF7FFFD4,
|
|
||||||
Azure = 0xFFF0FFFF,
|
|
||||||
Beige = 0xFFF5F5DC,
|
|
||||||
Bisque = 0xFFFFE4C4,
|
|
||||||
Black = 0xFF000000,
|
|
||||||
BlanchedAlmond = 0xFFFFEBCD,
|
|
||||||
Blue = 0xFF0000FF,
|
|
||||||
BlueViolet = 0xFF8A2BE2,
|
|
||||||
Brown = 0xFFA52A2A,
|
|
||||||
BurlyWood = 0xFFDEB887,
|
|
||||||
CadetBlue = 0xFF5F9EA0,
|
|
||||||
Chartreuse = 0xFF7FFF00,
|
|
||||||
Chocolate = 0xFFD2691E,
|
|
||||||
Coral = 0xFFFF7F50,
|
|
||||||
CornflowerBlue = 0xFF6495ED,
|
|
||||||
Cornsilk = 0xFFFFF8DC,
|
|
||||||
Crimson = 0xFFDC143C,
|
|
||||||
Cyan = 0xFF00FFFF,
|
|
||||||
DarkBlue = 0xFF00008B,
|
|
||||||
DarkCyan = 0xFF008B8B,
|
|
||||||
DarkGoldenrod = 0xFFB8860B,
|
|
||||||
DarkGray = 0xFFA9A9A9,
|
|
||||||
DarkGreen = 0xFF006400,
|
|
||||||
DarkKhaki = 0xFFBDB76B,
|
|
||||||
DarkMagenta = 0xFF8B008B,
|
|
||||||
DarkOliveGreen = 0xFF556B2F,
|
|
||||||
DarkOrange = 0xFFFF8C00,
|
|
||||||
DarkOrchid = 0xFF9932CC,
|
|
||||||
DarkRed = 0xFF8B0000,
|
|
||||||
DarkSalmon = 0xFFE9967A,
|
|
||||||
DarkSeaGreen = 0xFF8FBC8B,
|
|
||||||
DarkSlateBlue = 0xFF483D8B,
|
|
||||||
DarkSlateGray = 0xFF2F4F4F,
|
|
||||||
DarkTurquoise = 0xFF00CED1,
|
|
||||||
DarkViolet = 0xFF9400D3,
|
|
||||||
DeepPink = 0xFFFF1493,
|
|
||||||
DeepSkyBlue = 0xFF00BFFF,
|
|
||||||
DimGray = 0xFF696969,
|
|
||||||
DodgerBlue = 0xFF1E90FF,
|
|
||||||
Firebrick = 0xFFB22222,
|
|
||||||
FloralWhite = 0xFFFFFAF0,
|
|
||||||
ForestGreen = 0xFF228B22,
|
|
||||||
Fuchsia = 0xFFFF00FF,
|
|
||||||
Gainsboro = 0xFFDCDCDC,
|
|
||||||
GhostWhite = 0xFFF8F8FF,
|
|
||||||
Gold = 0xFFFFD700,
|
|
||||||
Goldenrod = 0xFFDAA520,
|
|
||||||
Gray = 0xFF808080,
|
|
||||||
Green = 0xFF008000,
|
|
||||||
GreenYellow = 0xFFADFF2F,
|
|
||||||
Honeydew = 0xFFF0FFF0,
|
|
||||||
HotPink = 0xFFFF69B4,
|
|
||||||
IndianRed = 0xFFCD5C5C,
|
|
||||||
Indigo = 0xFF4B0082,
|
|
||||||
Ivory = 0xFFFFFFF0,
|
|
||||||
Khaki = 0xFFF0E68C,
|
|
||||||
Lavender = 0xFFE6E6FA,
|
|
||||||
LavenderBlush = 0xFFFFF0F5,
|
|
||||||
LawnGreen = 0xFF7CFC00,
|
|
||||||
LemonChiffon = 0xFFFFFACD,
|
|
||||||
LightBlue = 0xFFADD8E6,
|
|
||||||
LightCoral = 0xFFF08080,
|
|
||||||
LightCyan = 0xFFE0FFFF,
|
|
||||||
LightGoldenrodYellow = 0xFFFAFAD2,
|
|
||||||
LightGray = 0xFFD3D3D3,
|
|
||||||
LightGreen = 0xFF90EE90,
|
|
||||||
LightPink = 0xFFFFB6C1,
|
|
||||||
LightSalmon = 0xFFFFA07A,
|
|
||||||
LightSeaGreen = 0xFF20B2AA,
|
|
||||||
LightSkyBlue = 0xFF87CEFA,
|
|
||||||
LightSlateGray = 0xFF778899,
|
|
||||||
LightSteelBlue = 0xFFB0C4DE,
|
|
||||||
LightYellow = 0xFFFFFFE0,
|
|
||||||
Lime = 0xFF00FF00,
|
|
||||||
LimeGreen = 0xFF32CD32,
|
|
||||||
Linen = 0xFFFAF0E6,
|
|
||||||
Magenta = 0xFFFF00FF,
|
|
||||||
Maroon = 0xFF800000,
|
|
||||||
MediumAquamarine = 0xFF66CDAA,
|
|
||||||
MediumBlue = 0xFF0000CD,
|
|
||||||
MediumOrchid = 0xFFBA55D3,
|
|
||||||
MediumPurple = 0xFF9370DB,
|
|
||||||
MediumSeaGreen = 0xFF3CB371,
|
|
||||||
MediumSlateBlue = 0xFF7B68EE,
|
|
||||||
MediumSpringGreen = 0xFF00FA9A,
|
|
||||||
MediumTurquoise = 0xFF48D1CC,
|
|
||||||
MediumVioletRed = 0xFFC71585,
|
|
||||||
MidnightBlue = 0xFF191970,
|
|
||||||
MintCream = 0xFFF5FFFA,
|
|
||||||
MistyRose = 0xFFFFE4E1,
|
|
||||||
Moccasin = 0xFFFFE4B5,
|
|
||||||
NavajoWhite = 0xFFFFDEAD,
|
|
||||||
Navy = 0xFF000080,
|
|
||||||
OldLace = 0xFFFDF5E6,
|
|
||||||
Olive = 0xFF808000,
|
|
||||||
OliveDrab = 0xFF6B8E23,
|
|
||||||
Orange = 0xFFFFA500,
|
|
||||||
OrangeRed = 0xFFFF4500,
|
|
||||||
Orchid = 0xFFDA70D6,
|
|
||||||
PaleGoldenrod = 0xFFEEE8AA,
|
|
||||||
PaleGreen = 0xFF98FB98,
|
|
||||||
PaleTurquoise = 0xFFAFEEEE,
|
|
||||||
PaleVioletRed = 0xFFDB7093,
|
|
||||||
PapayaWhip = 0xFFFFEFD5,
|
|
||||||
PeachPuff = 0xFFFFDAB9,
|
|
||||||
Peru = 0xFFCD853F,
|
|
||||||
Pink = 0xFFFFC0CB,
|
|
||||||
Plum = 0xFFDDA0DD,
|
|
||||||
PowderBlue = 0xFFB0E0E6,
|
|
||||||
Purple = 0xFF800080,
|
|
||||||
Red = 0xFFFF0000,
|
|
||||||
RosyBrown = 0xFFBC8F8F,
|
|
||||||
RoyalBlue = 0xFF4169E1,
|
|
||||||
SaddleBrown = 0xFF8B4513,
|
|
||||||
Salmon = 0xFFFA8072,
|
|
||||||
SandyBrown = 0xFFF4A460,
|
|
||||||
SeaGreen = 0xFF2E8B57,
|
|
||||||
SeaShell = 0xFFFFF5EE,
|
|
||||||
Sienna = 0xFFA0522D,
|
|
||||||
Silver = 0xFFC0C0C0,
|
|
||||||
SkyBlue = 0xFF87CEEB,
|
|
||||||
SlateBlue = 0xFF6A5ACD,
|
|
||||||
SlateGray = 0xFF708090,
|
|
||||||
Snow = 0xFFFFFAFA,
|
|
||||||
SpringGreen = 0xFF00FF7F,
|
|
||||||
SteelBlue = 0xFF4682B4,
|
|
||||||
Tan = 0xFFD2B48C,
|
|
||||||
Teal = 0xFF008080,
|
|
||||||
Thistle = 0xFFD8BFD8,
|
|
||||||
Tomato = 0xFFFF6347,
|
|
||||||
Transparent = 0x00FFFFFF,
|
|
||||||
Turquoise = 0xFF40E0D0,
|
|
||||||
Violet = 0xFFEE82EE,
|
|
||||||
Wheat = 0xFFF5DEB3,
|
|
||||||
White = 0xFFFFFFFF,
|
|
||||||
WhiteSmoke = 0xFFF5F5F5,
|
|
||||||
Yellow = 0xFFFFFF00,
|
|
||||||
YellowGreen = 0xFF9ACD32,
|
|
||||||
};
|
|
||||||
|
|
||||||
private:
|
|
||||||
ARGB color;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _GDIPLUSCOLOR_H */
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
/* FIXME: missing the methods. */
|
||||||
|
class Color
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
ARGB Argb;
|
||||||
|
};
|
||||||
|
|
||||||
|
#else /* end of c++ typedefs */
|
||||||
|
|
||||||
|
typedef struct Color
|
||||||
|
{
|
||||||
|
ARGB Argb;
|
||||||
|
} Color;
|
||||||
|
|
||||||
|
typedef enum ColorChannelFlags ColorChannelFlags;
|
||||||
|
|
||||||
|
#endif /* end of c typedefs */
|
||||||
|
|
||||||
|
#endif /* _GDIPLUSCOLOR_H */
|
||||||
|
|
|
@ -42,11 +42,18 @@ enum ColorAdjustType
|
||||||
ColorAdjustTypeAny
|
ColorAdjustTypeAny
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ColorMap
|
||||||
|
{
|
||||||
|
Color oldColor;
|
||||||
|
Color newCOlor;
|
||||||
|
};
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
|
|
||||||
typedef enum ColorAdjustType ColorAdjustType;
|
typedef enum ColorAdjustType ColorAdjustType;
|
||||||
typedef enum ColorMatrixFlags ColorMatrixFlags;
|
typedef enum ColorMatrixFlags ColorMatrixFlags;
|
||||||
typedef struct ColorMatrix ColorMatrix;
|
typedef struct ColorMatrix ColorMatrix;
|
||||||
|
typedef struct ColorMap ColorMap;
|
||||||
|
|
||||||
#endif /* end of c typedefs */
|
#endif /* end of c typedefs */
|
||||||
|
|
||||||
|
|
|
@ -270,6 +270,16 @@ enum ImageCodecFlags
|
||||||
ImageCodecFlagsUser = 262144
|
ImageCodecFlagsUser = 262144
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum CombineMode
|
||||||
|
{
|
||||||
|
CombineModeReplace,
|
||||||
|
CombineModeIntersect,
|
||||||
|
CombineModeUnion,
|
||||||
|
CombineModeXor,
|
||||||
|
CombineModeExclude,
|
||||||
|
CombineModeComplement
|
||||||
|
};
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
|
|
||||||
typedef enum Unit Unit;
|
typedef enum Unit Unit;
|
||||||
|
@ -299,6 +309,7 @@ typedef enum StringFormatFlags StringFormatFlags;
|
||||||
typedef enum HotkeyPrefix HotkeyPrefix;
|
typedef enum HotkeyPrefix HotkeyPrefix;
|
||||||
typedef enum PenAlignment GpPenAlignment;
|
typedef enum PenAlignment GpPenAlignment;
|
||||||
typedef enum ImageCodecFlags ImageCodecFlags;
|
typedef enum ImageCodecFlags ImageCodecFlags;
|
||||||
|
typedef enum CombineMode CombineMode;
|
||||||
|
|
||||||
#endif /* end of c typedefs */
|
#endif /* end of c typedefs */
|
||||||
|
|
||||||
|
|
|
@ -261,6 +261,7 @@ GpStatus WINGDIPAPI GdipFindFirstImageItem(GpImage*,ImageItemData*);
|
||||||
GpStatus WINGDIPAPI GdipFindNextImageItem(GpImage*,ImageItemData*);
|
GpStatus WINGDIPAPI GdipFindNextImageItem(GpImage*,ImageItemData*);
|
||||||
GpStatus WINGDIPAPI GdipGetImageEncodersSize(UINT *numEncoders, UINT *size);
|
GpStatus WINGDIPAPI GdipGetImageEncodersSize(UINT *numEncoders, UINT *size);
|
||||||
GpStatus WINGDIPAPI GdipGetImageEncoders(UINT numEncoders, UINT size, ImageCodecInfo *encoders);
|
GpStatus WINGDIPAPI GdipGetImageEncoders(UINT numEncoders, UINT size, ImageCodecInfo *encoders);
|
||||||
|
GpStatus WINGDIPAPI GdipCreateBitmapFromHBITMAP(HBITMAP, HPALETTE, GpBitmap**);
|
||||||
GpStatus WINGDIPAPI GdipGetImageItemData(GpImage*,ImageItemData*);
|
GpStatus WINGDIPAPI GdipGetImageItemData(GpImage*,ImageItemData*);
|
||||||
GpStatus WINGDIPAPI GdipGetImageBounds(GpImage*,GpRectF*,GpUnit*);
|
GpStatus WINGDIPAPI GdipGetImageBounds(GpImage*,GpRectF*,GpUnit*);
|
||||||
GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage*,GpGraphics**);
|
GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage*,GpGraphics**);
|
||||||
|
|
|
@ -38,6 +38,8 @@ class GpLineGradient : public GpBrush {};
|
||||||
class GpTexture : public GpBrush {};
|
class GpTexture : public GpBrush {};
|
||||||
class GpFont {};
|
class GpFont {};
|
||||||
class GpStringFormat {};
|
class GpStringFormat {};
|
||||||
|
class GpRegion {};
|
||||||
|
class CGpEffect {};
|
||||||
|
|
||||||
#else /* end of c++ declarations */
|
#else /* end of c++ declarations */
|
||||||
|
|
||||||
|
@ -58,6 +60,8 @@ typedef struct GpLineGradient GpLineGradient;
|
||||||
typedef struct GpTexture GpTexture;
|
typedef struct GpTexture GpTexture;
|
||||||
typedef struct GpFont GpFont;
|
typedef struct GpFont GpFont;
|
||||||
typedef struct GpStringFormat GpStringFormat;
|
typedef struct GpStringFormat GpStringFormat;
|
||||||
|
typedef struct GpRegion GpRegion;
|
||||||
|
typedef struct CGpEffect CGpEffect;
|
||||||
|
|
||||||
#endif /* end of c declarations */
|
#endif /* end of c declarations */
|
||||||
|
|
||||||
|
@ -76,5 +80,6 @@ typedef DashStyle GpDashStyle;
|
||||||
typedef MatrixOrder GpMatrixOrder;
|
typedef MatrixOrder GpMatrixOrder;
|
||||||
typedef Point GpPoint;
|
typedef Point GpPoint;
|
||||||
typedef WrapMode GpWrapMode;
|
typedef WrapMode GpWrapMode;
|
||||||
|
typedef Color GpColor;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue