GimpChannel

GimpChannel

Synopsis

                    GimpChannel;
GimpChannel *       gimp_channel_new                    (GimpImage *image,
                                                         gint width,
                                                         gint height,
                                                         const gchar *name,
                                                         const GimpRGB *color);
GimpChannel *       gimp_channel_new_from_component     (GimpImage *image,
                                                         GimpChannelType type,
                                                         const gchar *name,
                                                         const GimpRGB *color);
GimpChannel *       gimp_channel_new_from_alpha         (GimpImage *image,
                                                         GimpDrawable *drawable,
                                                         const gchar *name,
                                                         const GimpRGB *color);
GimpChannel *       gimp_channel_get_parent             (GimpChannel *channel);
gdouble             gimp_channel_get_opacity            (const GimpChannel *channel);
void                gimp_channel_set_opacity            (GimpChannel *channel,
                                                         gdouble opacity,
                                                         gboolean push_undo);
void                gimp_channel_get_color              (const GimpChannel *channel,
                                                         GimpRGB *color);
void                gimp_channel_set_color              (GimpChannel *channel,
                                                         const GimpRGB *color,
                                                         gboolean push_undo);
gboolean            gimp_channel_get_show_masked        (GimpChannel *channel);
void                gimp_channel_set_show_masked        (GimpChannel *channel,
                                                         gboolean show_masked);
GimpChannel *       gimp_channel_new_mask               (GimpImage *image,
                                                         gint width,
                                                         gint height);
gboolean            gimp_channel_boundary               (GimpChannel *mask,
                                                         const BoundSeg **segs_in,
                                                         const BoundSeg **segs_out,
                                                         gint *num_segs_in,
                                                         gint *num_segs_out,
                                                         gint x1,
                                                         gint y1,
                                                         gint x2,
                                                         gint y2);
gboolean            gimp_channel_bounds                 (GimpChannel *mask,
                                                         gint *x1,
                                                         gint *y1,
                                                         gint *x2,
                                                         gint *y2);
gboolean            gimp_channel_is_empty               (GimpChannel *mask);
void                gimp_channel_feather                (GimpChannel *mask,
                                                         gdouble radius_x,
                                                         gdouble radius_y,
                                                         gboolean push_undo);
void                gimp_channel_sharpen                (GimpChannel *mask,
                                                         gboolean push_undo);
void                gimp_channel_clear                  (GimpChannel *mask,
                                                         const gchar *undo_desc,
                                                         gboolean push_undo);
void                gimp_channel_all                    (GimpChannel *mask,
                                                         gboolean push_undo);
void                gimp_channel_invert                 (GimpChannel *mask,
                                                         gboolean push_undo);
void                gimp_channel_border                 (GimpChannel *mask,
                                                         gint radius_x,
                                                         gint radius_y,
                                                         gboolean feather,
                                                         gboolean edge_lock,
                                                         gboolean push_undo);
void                gimp_channel_grow                   (GimpChannel *mask,
                                                         gint radius_x,
                                                         gint radius_y,
                                                         gboolean push_undo);
void                gimp_channel_shrink                 (GimpChannel *mask,
                                                         gint radius_x,
                                                         gint radius_y,
                                                         gboolean edge_lock,
                                                         gboolean push_undo);
void                gimp_channel_push_undo              (GimpChannel *mask,
                                                         const gchar *undo_desc);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpItem
                     +----GimpDrawable
                           +----GimpChannel
                                 +----GimpLayerMask
                                 +----GimpSelection

Implemented Interfaces

GimpChannel implements GimpConfigInterface and GimpPickableInterface.

Signals

  "color-changed"                                  : Run First

Description

Details

GimpChannel

typedef struct _GimpChannel GimpChannel;


gimp_channel_new ()

GimpChannel *       gimp_channel_new                    (GimpImage *image,
                                                         gint width,
                                                         gint height,
                                                         const gchar *name,
                                                         const GimpRGB *color);


gimp_channel_new_from_component ()

GimpChannel *       gimp_channel_new_from_component     (GimpImage *image,
                                                         GimpChannelType type,
                                                         const gchar *name,
                                                         const GimpRGB *color);


gimp_channel_new_from_alpha ()

GimpChannel *       gimp_channel_new_from_alpha         (GimpImage *image,
                                                         GimpDrawable *drawable,
                                                         const gchar *name,
                                                         const GimpRGB *color);


gimp_channel_get_parent ()

GimpChannel *       gimp_channel_get_parent             (GimpChannel *channel);


gimp_channel_get_opacity ()

gdouble             gimp_channel_get_opacity            (const GimpChannel *channel);


gimp_channel_set_opacity ()

void                gimp_channel_set_opacity            (GimpChannel *channel,
                                                         gdouble opacity,
                                                         gboolean push_undo);


gimp_channel_get_color ()

void                gimp_channel_get_color              (const GimpChannel *channel,
                                                         GimpRGB *color);


gimp_channel_set_color ()

void                gimp_channel_set_color              (GimpChannel *channel,
                                                         const GimpRGB *color,
                                                         gboolean push_undo);


gimp_channel_get_show_masked ()

gboolean            gimp_channel_get_show_masked        (GimpChannel *channel);


gimp_channel_set_show_masked ()

void                gimp_channel_set_show_masked        (GimpChannel *channel,
                                                         gboolean show_masked);


gimp_channel_new_mask ()

GimpChannel *       gimp_channel_new_mask               (GimpImage *image,
                                                         gint width,
                                                         gint height);


gimp_channel_boundary ()

gboolean            gimp_channel_boundary               (GimpChannel *mask,
                                                         const BoundSeg **segs_in,
                                                         const BoundSeg **segs_out,
                                                         gint *num_segs_in,
                                                         gint *num_segs_out,
                                                         gint x1,
                                                         gint y1,
                                                         gint x2,
                                                         gint y2);


gimp_channel_bounds ()

gboolean            gimp_channel_bounds                 (GimpChannel *mask,
                                                         gint *x1,
                                                         gint *y1,
                                                         gint *x2,
                                                         gint *y2);


gimp_channel_is_empty ()

gboolean            gimp_channel_is_empty               (GimpChannel *mask);


gimp_channel_feather ()

void                gimp_channel_feather                (GimpChannel *mask,
                                                         gdouble radius_x,
                                                         gdouble radius_y,
                                                         gboolean push_undo);


gimp_channel_sharpen ()

void                gimp_channel_sharpen                (GimpChannel *mask,
                                                         gboolean push_undo);


gimp_channel_clear ()

void                gimp_channel_clear                  (GimpChannel *mask,
                                                         const gchar *undo_desc,
                                                         gboolean push_undo);


gimp_channel_all ()

void                gimp_channel_all                    (GimpChannel *mask,
                                                         gboolean push_undo);


gimp_channel_invert ()

void                gimp_channel_invert                 (GimpChannel *mask,
                                                         gboolean push_undo);


gimp_channel_border ()

void                gimp_channel_border                 (GimpChannel *mask,
                                                         gint radius_x,
                                                         gint radius_y,
                                                         gboolean feather,
                                                         gboolean edge_lock,
                                                         gboolean push_undo);


gimp_channel_grow ()

void                gimp_channel_grow                   (GimpChannel *mask,
                                                         gint radius_x,
                                                         gint radius_y,
                                                         gboolean push_undo);


gimp_channel_shrink ()

void                gimp_channel_shrink                 (GimpChannel *mask,
                                                         gint radius_x,
                                                         gint radius_y,
                                                         gboolean edge_lock,
                                                         gboolean push_undo);


gimp_channel_push_undo ()

void                gimp_channel_push_undo              (GimpChannel *mask,
                                                         const gchar *undo_desc);

Signal Details

The "color-changed" signal

void                user_function                      (GimpChannel *gimpchannel,
                                                        gpointer     user_data)        : Run First

gimpchannel :

the object which received the signal.

user_data :

user data set when the signal handler was connected.