GimpTemplate

GimpTemplate

Synopsis

#define             GIMP_DEFAULT_IMAGE_WIDTH
#define             GIMP_DEFAULT_IMAGE_HEIGHT
#define             GIMP_TEMPLATE_PARAM_COPY_FIRST
                    GimpTemplate;
GimpTemplate *      gimp_template_new                   (const gchar *name);
void                gimp_template_set_from_image        (GimpTemplate *template,
                                                         GimpImage *image);
gint                gimp_template_get_width             (GimpTemplate *template);
gint                gimp_template_get_height            (GimpTemplate *template);
GimpUnit            gimp_template_get_unit              (GimpTemplate *template);
gdouble             gimp_template_get_resolution_x      (GimpTemplate *template);
gdouble             gimp_template_get_resolution_y      (GimpTemplate *template);
GimpUnit            gimp_template_get_resolution_unit   (GimpTemplate *template);
GimpImageBaseType   gimp_template_get_image_type        (GimpTemplate *template);
GimpFillType        gimp_template_get_fill_type         (GimpTemplate *template);
const gchar *       gimp_template_get_comment           (GimpTemplate *template);
guint64             gimp_template_get_initial_size      (GimpTemplate *template);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpTemplate

Implemented Interfaces

GimpTemplate implements GimpConfigInterface.

Properties

  "comment"                  gchar*                : Read / Write / Construct
  "filename"                 gchar*                : Read / Write / Construct
  "fill-type"                GimpFillType          : Read / Write / Construct
  "height"                   gint                  : Read / Write / Construct
  "image-type"               GimpImageBaseType     : Read / Write / Construct
  "resolution-unit"          GimpUnit              : Read / Write / Construct
  "unit"                     GimpUnit              : Read / Write / Construct
  "width"                    gint                  : Read / Write / Construct
  "xresolution"              gdouble               : Read / Write / Construct
  "yresolution"              gdouble               : Read / Write / Construct

Description

Details

GIMP_DEFAULT_IMAGE_WIDTH

#define GIMP_DEFAULT_IMAGE_WIDTH   610


GIMP_DEFAULT_IMAGE_HEIGHT

#define GIMP_DEFAULT_IMAGE_HEIGHT  377


GIMP_TEMPLATE_PARAM_COPY_FIRST

#define GIMP_TEMPLATE_PARAM_COPY_FIRST (1 << (8 + G_PARAM_USER_SHIFT))


GimpTemplate

typedef struct _GimpTemplate GimpTemplate;


gimp_template_new ()

GimpTemplate *      gimp_template_new                   (const gchar *name);


gimp_template_set_from_image ()

void                gimp_template_set_from_image        (GimpTemplate *template,
                                                         GimpImage *image);


gimp_template_get_width ()

gint                gimp_template_get_width             (GimpTemplate *template);


gimp_template_get_height ()

gint                gimp_template_get_height            (GimpTemplate *template);


gimp_template_get_unit ()

GimpUnit            gimp_template_get_unit              (GimpTemplate *template);


gimp_template_get_resolution_x ()

gdouble             gimp_template_get_resolution_x      (GimpTemplate *template);


gimp_template_get_resolution_y ()

gdouble             gimp_template_get_resolution_y      (GimpTemplate *template);


gimp_template_get_resolution_unit ()

GimpUnit            gimp_template_get_resolution_unit   (GimpTemplate *template);


gimp_template_get_image_type ()

GimpImageBaseType   gimp_template_get_image_type        (GimpTemplate *template);


gimp_template_get_fill_type ()

GimpFillType        gimp_template_get_fill_type         (GimpTemplate *template);


gimp_template_get_comment ()

const gchar *       gimp_template_get_comment           (GimpTemplate *template);


gimp_template_get_initial_size ()

guint64             gimp_template_get_initial_size      (GimpTemplate *template);

Property Details

The "comment" property

  "comment"                  gchar*                : Read / Write / Construct

Default value: NULL


The "filename" property

  "filename"                 gchar*                : Read / Write / Construct

Default value: NULL


The "fill-type" property

  "fill-type"                GimpFillType          : Read / Write / Construct

Default value: GIMP_BACKGROUND_FILL


The "height" property

  "height"                   gint                  : Read / Write / Construct

Allowed values: [1,262144]

Default value: 400


The "image-type" property

  "image-type"               GimpImageBaseType     : Read / Write / Construct

Default value: GIMP_RGB


The "resolution-unit" property

  "resolution-unit"          GimpUnit              : Read / Write / Construct

Allowed values: [1,65535]

Default value: 1


The "unit" property

  "unit"                     GimpUnit              : Read / Write / Construct

The unit used for coordinate display when not in dot-for-dot mode.

Allowed values: [0,65535]

Default value: 0


The "width" property

  "width"                    gint                  : Read / Write / Construct

Allowed values: [1,262144]

Default value: 640


The "xresolution" property

  "xresolution"              gdouble               : Read / Write / Construct

The horizontal image resolution.

Allowed values: [0.005,65536]

Default value: 72


The "yresolution" property

  "yresolution"              gdouble               : Read / Write / Construct

The vertical image resolution.

Allowed values: [0.005,65536]

Default value: 72