![]() | ![]() | Gwyddion Drawing Library Reference Manual | ![]() |
---|
gwypixfield — Draw GwyDataFields to GdkPixbufs
void gwy_pixfield_do (GdkPixbuf *pixbuf, GwyDataField *data_field, GwyPalette *palette); void gwy_pixfield_do_with_range (GdkPixbuf *pixbuf, GwyDataField *data_field, GwyPalette *palette, gdouble minimum, gdouble maximum); void gwy_pixfield_do_mask (GdkPixbuf *pixbuf, GwyDataField *data_field, GwyRGBA *color);
void gwy_pixfield_do (GdkPixbuf *pixbuf, GwyDataField *data_field, GwyPalette *palette);
Paints a pixbuf pixbuf with data from data_field using false color palette palette.
FIXME: This is a provisory function, probably to be renamed, moved, changed, etc.
pixbuf : | A Gdk pixbuf to draw to. |
data_field : | A data to draw. |
palette : | A palette to draw with. |
void gwy_pixfield_do_with_range (GdkPixbuf *pixbuf, GwyDataField *data_field, GwyPalette *palette, gdouble minimum, gdouble maximum);
Paints a pixbuf pixbuf with data from data_field using false color palette palette, stretched over given range (outliers get the edge colors).
FIXME: This is a provisory function, probably to be renamed, moved, changed, etc.
pixbuf : | A Gdk pixbuf to draw to. |
data_field : | A data to draw. |
palette : | A palette to draw with. |
minimum : | The value corresponding to palette start. |
maximum : | The value corresponding to palette end. |
void gwy_pixfield_do_mask (GdkPixbuf *pixbuf, GwyDataField *data_field, GwyRGBA *color);
Paints a pixbuf pixbuf with data from data_field using a signle color color with opacity varying with data value. The data range is assumed to be [0,1).
FIXME: This is a provisory function, probably to be renamed, moved, changed, etc.
pixbuf : | A Gdk pixbuf to draw to. |
data_field : | A data to draw. |
color : | A color to use. |
<< GwyPaletteDef | gwydraw >> |