GimpInk-blob

GimpInk-blob

Synopsis

struct              GimpBlobPoint;
struct              GimpBlobSpan;
struct              GimpBlob;
GimpBlob *          (*GimpBlobFunc)                     (gdouble xc,
                                                         gdouble yc,
                                                         gdouble xp,
                                                         gdouble yp,
                                                         gdouble xq,
                                                         gdouble yq);
GimpBlob *          gimp_blob_polygon                   (GimpBlobPoint *points,
                                                         gint n_points);
GimpBlob *          gimp_blob_square                    (gdouble xc,
                                                         gdouble yc,
                                                         gdouble xp,
                                                         gdouble yp,
                                                         gdouble xq,
                                                         gdouble yq);
GimpBlob *          gimp_blob_diamond                   (gdouble xc,
                                                         gdouble yc,
                                                         gdouble xp,
                                                         gdouble yp,
                                                         gdouble xq,
                                                         gdouble yq);
GimpBlob *          gimp_blob_ellipse                   (gdouble xc,
                                                         gdouble yc,
                                                         gdouble xp,
                                                         gdouble yp,
                                                         gdouble xq,
                                                         gdouble yq);
void                gimp_blob_bounds                    (GimpBlob *b,
                                                         gint *x,
                                                         gint *y,
                                                         gint *width,
                                                         gint *height);
GimpBlob *          gimp_blob_convex_union              (GimpBlob *b1,
                                                         GimpBlob *b2);
GimpBlob *          gimp_blob_duplicate                 (GimpBlob *b);

Description

Details

struct GimpBlobPoint

struct GimpBlobPoint {
  gint x;
  gint y;
};


struct GimpBlobSpan

struct GimpBlobSpan {
  gint left;
  gint right;
};


struct GimpBlob

struct GimpBlob {
  gint         y;
  gint         height;
  GimpBlobSpan data[1];
};


GimpBlobFunc ()

GimpBlob *          (*GimpBlobFunc)                     (gdouble xc,
                                                         gdouble yc,
                                                         gdouble xp,
                                                         gdouble yp,
                                                         gdouble xq,
                                                         gdouble yq);


gimp_blob_polygon ()

GimpBlob *          gimp_blob_polygon                   (GimpBlobPoint *points,
                                                         gint n_points);


gimp_blob_square ()

GimpBlob *          gimp_blob_square                    (gdouble xc,
                                                         gdouble yc,
                                                         gdouble xp,
                                                         gdouble yp,
                                                         gdouble xq,
                                                         gdouble yq);


gimp_blob_diamond ()

GimpBlob *          gimp_blob_diamond                   (gdouble xc,
                                                         gdouble yc,
                                                         gdouble xp,
                                                         gdouble yp,
                                                         gdouble xq,
                                                         gdouble yq);


gimp_blob_ellipse ()

GimpBlob *          gimp_blob_ellipse                   (gdouble xc,
                                                         gdouble yc,
                                                         gdouble xp,
                                                         gdouble yp,
                                                         gdouble xq,
                                                         gdouble yq);


gimp_blob_bounds ()

void                gimp_blob_bounds                    (GimpBlob *b,
                                                         gint *x,
                                                         gint *y,
                                                         gint *width,
                                                         gint *height);


gimp_blob_convex_union ()

GimpBlob *          gimp_blob_convex_union              (GimpBlob *b1,
                                                         GimpBlob *b2);


gimp_blob_duplicate ()

GimpBlob *          gimp_blob_duplicate                 (GimpBlob *b);