KImgIO
Go to the source code of this file.
|
typedef unsigned char | uchar |
|
|
enum | CompressionType { COMPRESS_NONE = 0,
COMPRESS_RLE = 1,
COMPRESS_ZLIB = 2,
COMPRESS_FRACTAL = 3
} |
|
enum | GimpImageBaseType { RGB,
GRAY,
INDEXED
} |
|
enum | GimpImageType {
RGB_GIMAGE,
RGBA_GIMAGE,
GRAY_GIMAGE,
GRAYA_GIMAGE,
INDEXED_GIMAGE,
INDEXEDA_GIMAGE
} |
|
enum | LayerModeEffects {
NORMAL_MODE,
DISSOLVE_MODE,
BEHIND_MODE,
MULTIPLY_MODE,
SCREEN_MODE,
OVERLAY_MODE,
DIFFERENCE_MODE,
ADDITION_MODE,
SUBTRACT_MODE,
DARKEN_ONLY_MODE,
LIGHTEN_ONLY_MODE,
HUE_MODE,
SATURATION_MODE,
COLOR_MODE,
VALUE_MODE,
DIVIDE_MODE,
DODGE_MODE,
BURN_MODE,
HARDLIGHT_MODE,
SOFTLIGHT_MODE,
GRAIN_EXTRACT_MODE,
GRAIN_MERGE_MODE
} |
|
enum | PropType {
PROP_END = 0,
PROP_COLORMAP = 1,
PROP_ACTIVE_LAYER = 2,
PROP_ACTIVE_CHANNEL = 3,
PROP_SELECTION = 4,
PROP_FLOATING_SELECTION = 5,
PROP_OPACITY = 6,
PROP_MODE = 7,
PROP_VISIBLE = 8,
PROP_LINKED = 9,
PROP_PRESERVE_TRANSPARENCY = 10,
PROP_APPLY_MASK = 11,
PROP_EDIT_MASK = 12,
PROP_SHOW_MASK = 13,
PROP_SHOW_MASKED = 14,
PROP_OFFSETS = 15,
PROP_COLOR = 16,
PROP_COMPRESSION = 17,
PROP_GUIDES = 18,
PROP_RESOLUTION = 19,
PROP_TATTOO = 20,
PROP_PARASITES = 21,
PROP_UNIT = 22,
PROP_PATHS = 23,
PROP_USER_UNIT = 24
} |
|
|
static void | HLSTORGB (uchar &hue, uchar &lightness, uchar &saturation) |
|
static int | HLSVALUE (double n1, double n2, double hue) |
|
static void | HSVTORGB (uchar &hue, uchar &saturation, uchar &value) |
|
int | INT_BLEND (int a, int b, int alpha) |
|
int | INT_MULT (int a, int b) |
|
static void | RGBTOHLS (uchar &red, uchar &green, uchar &blue) |
|
static void | RGBTOHSV (uchar &red, uchar &green, uchar &blue) |
|
typedef unsigned char uchar |
Compression type used in layer tiles.
Enumerator |
---|
COMPRESS_NONE |
|
COMPRESS_RLE |
|
COMPRESS_ZLIB |
|
COMPRESS_FRACTAL |
|
Definition at line 139 of file gimp.h.
Basic GIMP image type.
QImage converter may produce a deeper image than is specified here. For example, a grayscale image with an alpha channel must (currently) use a 32-bit Qt image.
Enumerator |
---|
RGB |
|
GRAY |
|
INDEXED |
|
Definition at line 53 of file gimp.h.
Type of individual layers in an XCF file.
Enumerator |
---|
RGB_GIMAGE |
|
RGBA_GIMAGE |
|
GRAY_GIMAGE |
|
GRAYA_GIMAGE |
|
INDEXED_GIMAGE |
|
INDEXEDA_GIMAGE |
|
Definition at line 62 of file gimp.h.
Effect to apply when layers are merged together.
Enumerator |
---|
NORMAL_MODE |
|
DISSOLVE_MODE |
|
BEHIND_MODE |
|
MULTIPLY_MODE |
|
SCREEN_MODE |
|
OVERLAY_MODE |
|
DIFFERENCE_MODE |
|
ADDITION_MODE |
|
SUBTRACT_MODE |
|
DARKEN_ONLY_MODE |
|
LIGHTEN_ONLY_MODE |
|
HUE_MODE |
|
SATURATION_MODE |
|
COLOR_MODE |
|
VALUE_MODE |
|
DIVIDE_MODE |
|
DODGE_MODE |
|
BURN_MODE |
|
HARDLIGHT_MODE |
|
SOFTLIGHT_MODE |
|
GRAIN_EXTRACT_MODE |
|
GRAIN_MERGE_MODE |
|
Definition at line 76 of file gimp.h.
Properties which can be stored in an XCF file.
Enumerator |
---|
PROP_END |
|
PROP_COLORMAP |
|
PROP_ACTIVE_LAYER |
|
PROP_ACTIVE_CHANNEL |
|
PROP_SELECTION |
|
PROP_FLOATING_SELECTION |
|
PROP_OPACITY |
|
PROP_MODE |
|
PROP_VISIBLE |
|
PROP_LINKED |
|
PROP_PRESERVE_TRANSPARENCY |
|
PROP_APPLY_MASK |
|
PROP_EDIT_MASK |
|
PROP_SHOW_MASK |
|
PROP_SHOW_MASKED |
|
PROP_OFFSETS |
|
PROP_COLOR |
|
PROP_COMPRESSION |
|
PROP_GUIDES |
|
PROP_RESOLUTION |
|
PROP_TATTOO |
|
PROP_PARASITES |
|
PROP_UNIT |
|
PROP_PATHS |
|
PROP_USER_UNIT |
|
Definition at line 106 of file gimp.h.
static void HLSTORGB |
( |
uchar & |
hue, |
|
|
uchar & |
lightness, |
|
|
uchar & |
saturation |
|
) |
| |
|
static |
Convert a color in HLS space to RGB space.
- Parameters
-
hue | the hue component (modified in place). |
lightness | the lightness component (modified in place). |
saturation | the saturation component (modified in place). |
Definition at line 390 of file gimp.h.
static int HLSVALUE |
( |
double |
n1, |
|
|
double |
n2, |
|
|
double |
hue |
|
) |
| |
|
static |
Implement the HLS "double hex-cone".
- Parameters
-
n1 | lightness fraction (?) |
n2 | saturation fraction (?) |
hue | hue "angle". |
- Returns
- HLS value.
Definition at line 363 of file gimp.h.
Convert a color in HSV space to RGB space.
- Parameters
-
hue | the hue component (modified in place). |
saturation | the saturation component (modified in place). |
value | the value component (modified in place). |
Definition at line 243 of file gimp.h.
int INT_BLEND |
( |
int |
a, |
|
|
int |
b, |
|
|
int |
alpha |
|
) |
| |
|
inline |
Blend the two color components in the proportion alpha:
result = alpha a + ( 1 - alpha ) b
- Parameters
-
a | first component. |
b | second component. |
alpha | blend proportion. |
- Returns
- blended color components.
Definition at line 173 of file gimp.h.
int INT_MULT |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
|
inline |
Multiply two color components. Really expects the arguments to be 8-bit quantities.
- Parameters
-
a | first minuend. |
b | second minuend. |
- Returns
- product of arguments.
Definition at line 156 of file gimp.h.
Convert a color in RGB space to HLS space (Hue, Lightness, Saturation).
- Parameters
-
red | the red component (modified in place). |
green | the green component (modified in place). |
blue | the blue component (modified in place). |
Definition at line 303 of file gimp.h.
Convert a color in RGB space to HSV space (Hue, Saturation, Value).
- Parameters
-
red | the red component (modified in place). |
green | the green component (modified in place). |
blue | the blue component (modified in place). |
Definition at line 186 of file gimp.h.
const double EPSILON = 0.0001 |
Roundup in alpha blending.
Definition at line 41 of file gimp.h.
const uchar OPAQUE_OPACITY = 255 |
Opaque value for 8-bit alpha component.
Definition at line 45 of file gimp.h.
const int RANDOM_SEED = 314159265 |
Seed for dissolve random number table.
Definition at line 40 of file gimp.h.
const int RANDOM_TABLE_SIZE = 4096 |
Size of dissolve random number table.
Definition at line 39 of file gimp.h.
const uint TILE_HEIGHT = 64 |
Height of a tile in the XCF file.
Definition at line 35 of file gimp.h.
const uint TILE_WIDTH = 64 |
Width of a tile in the XCF file.
Definition at line 34 of file gimp.h.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:50 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.