gimp-composite

gimp-composite

Synopsis

enum                GimpPixelFormat;
#define             GIMP_COMPOSITE_ALPHA_OPAQUE
#define             GIMP_COMPOSITE_ALPHA_TRANSPARENT
enum                GimpCompositeOperation;
void                gimp_composite_dispatch             (GimpCompositeContext *ctx);
void                gimp_composite_init                 (gboolean be_verbose,
                                                         gboolean use_cpu_accel);
void                gimp_composite_context_print        (GimpCompositeContext *ctx);
const gchar *       gimp_composite_pixelformat_astext   (GimpPixelFormat format);
const gchar *       gimp_composite_mode_astext          (GimpCompositeOperation op);
gboolean            gimp_composite_use_cpu_accel        (void);
#define             GIMP_COMPOSITE_OPTION_NOEXTENSIONS
#define             GIMP_COMPOSITE_OPTION_VERBOSE

Description

Details

enum GimpPixelFormat

typedef enum {
  GIMP_PIXELFORMAT_V8,
  GIMP_PIXELFORMAT_VA8,
  GIMP_PIXELFORMAT_RGB8,
  GIMP_PIXELFORMAT_RGBA8,
  GIMP_PIXELFORMAT_ANY,
  GIMP_PIXELFORMAT_N
} GimpPixelFormat;

GIMP_PIXELFORMAT_V8

GIMP_PIXELFORMAT_VA8

GIMP_PIXELFORMAT_RGB8

GIMP_PIXELFORMAT_RGBA8

GIMP_PIXELFORMAT_ANY

GIMP_PIXELFORMAT_N


GIMP_COMPOSITE_ALPHA_OPAQUE

#define GIMP_COMPOSITE_ALPHA_OPAQUE      (-1)


GIMP_COMPOSITE_ALPHA_TRANSPARENT

#define GIMP_COMPOSITE_ALPHA_TRANSPARENT (0)


enum GimpCompositeOperation

typedef enum {
  GIMP_COMPOSITE_NORMAL        = GIMP_NORMAL_MODE,
  GIMP_COMPOSITE_DISSOLVE      = GIMP_DISSOLVE_MODE,
  GIMP_COMPOSITE_BEHIND        = GIMP_BEHIND_MODE,
  GIMP_COMPOSITE_MULTIPLY      = GIMP_MULTIPLY_MODE,
  GIMP_COMPOSITE_SCREEN        = GIMP_SCREEN_MODE,
  GIMP_COMPOSITE_OVERLAY       = GIMP_OVERLAY_MODE,
  GIMP_COMPOSITE_DIFFERENCE    = GIMP_DIFFERENCE_MODE,
  GIMP_COMPOSITE_ADDITION      = GIMP_ADDITION_MODE,
  GIMP_COMPOSITE_SUBTRACT      = GIMP_SUBTRACT_MODE,
  GIMP_COMPOSITE_DARKEN        = GIMP_DARKEN_ONLY_MODE,
  GIMP_COMPOSITE_LIGHTEN       = GIMP_LIGHTEN_ONLY_MODE,
  GIMP_COMPOSITE_HUE           = GIMP_HUE_MODE,
  GIMP_COMPOSITE_SATURATION    = GIMP_SATURATION_MODE,
  GIMP_COMPOSITE_COLOR_ONLY    = GIMP_COLOR_MODE,
  GIMP_COMPOSITE_VALUE         = GIMP_VALUE_MODE,
  GIMP_COMPOSITE_DIVIDE        = GIMP_DIVIDE_MODE,
  GIMP_COMPOSITE_DODGE         = GIMP_DODGE_MODE,
  GIMP_COMPOSITE_BURN          = GIMP_BURN_MODE,
  GIMP_COMPOSITE_HARDLIGHT     = GIMP_HARDLIGHT_MODE,
  GIMP_COMPOSITE_SOFTLIGHT     = GIMP_SOFTLIGHT_MODE,
  GIMP_COMPOSITE_GRAIN_EXTRACT = GIMP_GRAIN_EXTRACT_MODE,
  GIMP_COMPOSITE_GRAIN_MERGE   = GIMP_GRAIN_MERGE_MODE,
  GIMP_COMPOSITE_COLOR_ERASE   = GIMP_COLOR_ERASE_MODE,
  GIMP_COMPOSITE_ERASE         = GIMP_ERASE_MODE,
  GIMP_COMPOSITE_REPLACE       = GIMP_REPLACE_MODE,
  GIMP_COMPOSITE_ANTI_ERASE    = GIMP_ANTI_ERASE_MODE,
  GIMP_COMPOSITE_BLEND,
  GIMP_COMPOSITE_SHADE,
  GIMP_COMPOSITE_SWAP,
  GIMP_COMPOSITE_SCALE,
  GIMP_COMPOSITE_CONVERT,
  GIMP_COMPOSITE_XOR,
  GIMP_COMPOSITE_N
} GimpCompositeOperation;

GIMP_COMPOSITE_NORMAL

GIMP_COMPOSITE_DISSOLVE

GIMP_COMPOSITE_BEHIND

GIMP_COMPOSITE_MULTIPLY

GIMP_COMPOSITE_SCREEN

GIMP_COMPOSITE_OVERLAY

GIMP_COMPOSITE_DIFFERENCE

GIMP_COMPOSITE_ADDITION

GIMP_COMPOSITE_SUBTRACT

GIMP_COMPOSITE_DARKEN

GIMP_COMPOSITE_LIGHTEN

GIMP_COMPOSITE_HUE

GIMP_COMPOSITE_SATURATION

GIMP_COMPOSITE_COLOR_ONLY

GIMP_COMPOSITE_VALUE

GIMP_COMPOSITE_DIVIDE

GIMP_COMPOSITE_DODGE

GIMP_COMPOSITE_BURN

GIMP_COMPOSITE_HARDLIGHT

GIMP_COMPOSITE_SOFTLIGHT

GIMP_COMPOSITE_GRAIN_EXTRACT

GIMP_COMPOSITE_GRAIN_MERGE

GIMP_COMPOSITE_COLOR_ERASE

GIMP_COMPOSITE_ERASE

GIMP_COMPOSITE_REPLACE

GIMP_COMPOSITE_ANTI_ERASE

GIMP_COMPOSITE_BLEND

GIMP_COMPOSITE_SHADE

GIMP_COMPOSITE_SWAP

GIMP_COMPOSITE_SCALE

GIMP_COMPOSITE_CONVERT

GIMP_COMPOSITE_XOR

GIMP_COMPOSITE_N


gimp_composite_dispatch ()

void                gimp_composite_dispatch             (GimpCompositeContext *ctx);

Given a compositing context, perform the compositing function dictated by the compositing context operation. There is no return value, all results are in the compositing context.

ctx :

The compositing context

gimp_composite_init ()

void                gimp_composite_init                 (gboolean be_verbose,
                                                         gboolean use_cpu_accel);

Initialise the Gimp Compositing subsystem. This includes checking for user options and environment, installing the generic set of compositing operation handlers, followed by overloading those which are supported by the current cpu/hardware.

be_verbose :

whether to be verbose on stdout

use_cpu_accel :

whether to use accelerated routines like MMX

gimp_composite_context_print ()

void                gimp_composite_context_print        (GimpCompositeContext *ctx);

Print a human readable form of a GimpCompositeContext on stdout.

ctx :

The context to print

gimp_composite_pixelformat_astext ()

const gchar *       gimp_composite_pixelformat_astext   (GimpPixelFormat format);

Given a GimpPixelFormat, return a string representation of the name of that format.

format :

The format.

Returns :

gchar *, the name

gimp_composite_mode_astext ()

const gchar *       gimp_composite_mode_astext          (GimpCompositeOperation op);

Given a GimpCompositeOperatin, return a string representation of the name of that operation.

Returns :

gchar *, the name

gimp_composite_use_cpu_accel ()

gboolean            gimp_composite_use_cpu_accel        (void);


GIMP_COMPOSITE_OPTION_NOEXTENSIONS

#define GIMP_COMPOSITE_OPTION_NOEXTENSIONS  0x2


GIMP_COMPOSITE_OPTION_VERBOSE

#define GIMP_COMPOSITE_OPTION_VERBOSE       0x4