GimpChannel-combine

GimpChannel-combine

Synopsis

void                gimp_channel_combine_rect           (GimpChannel *mask,
                                                         GimpChannelOps op,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h);
void                gimp_channel_combine_ellipse        (GimpChannel *mask,
                                                         GimpChannelOps op,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h,
                                                         gboolean antialias);
void                gimp_channel_combine_ellipse_rect   (GimpChannel *mask,
                                                         GimpChannelOps op,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h,
                                                         gdouble a,
                                                         gdouble b,
                                                         gboolean antialias);
void                gimp_channel_combine_mask           (GimpChannel *mask,
                                                         GimpChannel *add_on,
                                                         GimpChannelOps op,
                                                         gint off_x,
                                                         gint off_y);

Description

Details

gimp_channel_combine_rect ()

void                gimp_channel_combine_rect           (GimpChannel *mask,
                                                         GimpChannelOps op,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h);


gimp_channel_combine_ellipse ()

void                gimp_channel_combine_ellipse        (GimpChannel *mask,
                                                         GimpChannelOps op,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h,
                                                         gboolean antialias);

Mainly used for elliptical selections. If op is GIMP_CHANNEL_OP_REPLACE or GIMP_CHANNEL_OP_ADD, sets pixels within the ellipse to 255. If op is GIMP_CHANNEL_OP_SUBTRACT, sets pixels within to zero. If antialias is TRUE, pixels that impinge on the edge of the ellipse are set to intermediate values, depending on how much they overlap.

mask :

the channel with which to combine the ellipse

op :

whether to replace, add to, or subtract from the current contents

x :

x coordinate of upper left corner of ellipse

y :

y coordinate of upper left corner of ellipse

w :

width of ellipse bounding box

h :

height of ellipse bounding box

antialias :

if TRUE, antialias the ellipse

gimp_channel_combine_ellipse_rect ()

void                gimp_channel_combine_ellipse_rect   (GimpChannel *mask,
                                                         GimpChannelOps op,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h,
                                                         gdouble a,
                                                         gdouble b,
                                                         gboolean antialias);

Used for rounded cornered rectangles and ellipses. If op is GIMP_CHANNEL_OP_REPLACE or GIMP_CHANNEL_OP_ADD, sets pixels within the ellipse to 255. If op is GIMP_CHANNEL_OP_SUBTRACT, sets pixels within to zero. If antialias is TRUE, pixels that impinge on the edge of the ellipse are set to intermediate values, depending on how much they overlap.

mask :

the channel with which to combine the elliptic rect

op :

whether to replace, add to, or subtract from the current contents

x :

x coordinate of upper left corner of bounding rect

y :

y coordinate of upper left corner of bounding rect

w :

width of bounding rect

h :

height of bounding rect

a :

elliptic a-constant applied to corners

b :

elliptic b-constant applied to corners

antialias :

if TRUE, antialias the elliptic corners

gimp_channel_combine_mask ()

void                gimp_channel_combine_mask           (GimpChannel *mask,
                                                         GimpChannel *add_on,
                                                         GimpChannelOps op,
                                                         gint off_x,
                                                         gint off_y);