• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KImgIO

  • kimgio
Typedefs | Enumerations | Functions | Variables
gimp.h File Reference

Go to the source code of this file.

Typedefs

typedef unsigned char uchar

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,
  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
}

Functions

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)

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

Typedef Documentation

typedef unsigned char uchar

Definition at line 24 of file gimp.h.


Enumeration Type Documentation

enum CompressionType

Compression type used in layer tiles.

Enumerator:
COMPRESS_NONE 
COMPRESS_RLE 
COMPRESS_ZLIB 
COMPRESS_FRACTAL 

Definition at line 139 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 
DODGE_MODE 
BURN_MODE 
HARDLIGHT_MODE 
SOFTLIGHT_MODE 
GRAIN_EXTRACT_MODE 
GRAIN_MERGE_MODE 

Definition at line 76 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 106 of file gimp.h.


Function Documentation

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

Convert a color in HLS space to RGB space.

Parameters:
huethe hue component (modified in place).
lightnessthe lightness component (modified in place).
saturationthe 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:
n1lightness fraction (?)
n2saturation fraction (?)
huehue "angle".
Returns:
HLS value.

Definition at line 363 of file gimp.h.

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

Convert a color in HSV space to RGB space.

Parameters:
huethe hue component (modified in place).
saturationthe saturation component (modified in place).
valuethe 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:
afirst component.
bsecond component.
alphablend 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:
afirst minuend.
bsecond minuend.
Returns:
product of arguments.

Definition at line 156 of file gimp.h.

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

Convert a color in RGB space to HLS space (Hue, Lightness, Saturation).

Parameters:
redthe red component (modified in place).
greenthe green component (modified in place).
bluethe blue component (modified in place).

Definition at line 303 of file gimp.h.

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

Convert a color in RGB space to HSV space (Hue, Saturation, Value).

Parameters:
redthe red component (modified in place).
greenthe green component (modified in place).
bluethe blue component (modified in place).

Definition at line 186 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.

This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:48:15 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KImgIO

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal