• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KImgIO

gimp.h File Reference

#include <kglobal.h>

Include dependency graph for gimp.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Enumerations

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,
  ERASE_MODE, REPLACE_MODE, ANTI_ERASE_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
}

Functions

void HLSTORGB (uchar &hue, uchar &lightness, uchar &saturation)
int HLSVALUE (double n1, double n2, double hue)
void HSVTORGB (uchar &hue, uchar &saturation, uchar &value)
int INT_BLEND (int a, int b, int alpha)
int INT_MULT (int a, int b)
void RGBTOHLS (uchar &red, uchar &green, uchar &blue)
void RGBTOHSV (uchar &red, uchar &green, uchar &blue)

Variables

const double EPSILON = 0.0001
const uchar OPAQUE_OPACITY = 255
const int RANDOM_SEED = 314159265
const int RANDOM_TABLE_SIZE = 4096
const uint TILE_HEIGHT = 64
const uint TILE_WIDTH = 64

Enumeration Type Documentation

enum CompressionType

Compression type used in layer tiles.

Enumerator:
COMPRESS_NONE 
COMPRESS_RLE 
COMPRESS_ZLIB 
COMPRESS_FRACTAL 

Definition at line 134 of file gimp.h.

enum GimpImageBaseType

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.

enum GimpImageType

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.

enum LayerModeEffects

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 
ERASE_MODE 
REPLACE_MODE 
ANTI_ERASE_MODE 

Definition at line 74 of file gimp.h.

enum PropType

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 101 of file gimp.h.


Function Documentation

void HLSTORGB ( uchar &  hue,
uchar &  lightness,
uchar &  saturation 
)

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 385 of file gimp.h.

int HLSVALUE ( double  n1,
double  n2,
double  hue 
)

Implement the HLS "double hex-cone".

Parameters:
n1 lightness fraction (?)
n2 saturation fraction (?)
hue hue "angle".
Returns:
HLS value.

Definition at line 358 of file gimp.h.

void HSVTORGB ( uchar &  hue,
uchar &  saturation,
uchar &  value 
)

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 238 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 168 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 151 of file gimp.h.

void RGBTOHLS ( uchar &  red,
uchar &  green,
uchar &  blue 
)

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 298 of file gimp.h.

void RGBTOHSV ( uchar &  red,
uchar &  green,
uchar &  blue 
)

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 181 of file gimp.h.


Variable Documentation

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.

KImgIO

Skip menu "KImgIO"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal