temp-buf

temp-buf

Synopsis




                    TempBuf;
TempBuf*            temp_buf_new                        (gint width,
                                                         gint height,
                                                         gint bytes,
                                                         gint x,
                                                         gint y,
                                                         const guchar *color);
TempBuf*            temp_buf_new_check                  (gint width,
                                                         gint height,
                                                         GimpCheckType check_type,
                                                         GimpCheckSize check_size);
TempBuf*            temp_buf_copy                       (TempBuf *src,
                                                         TempBuf *dest);
TempBuf*            temp_buf_resize                     (TempBuf *buf,
                                                         gint bytes,
                                                         gint x,
                                                         gint y,
                                                         gint width,
                                                         gint height);
TempBuf*            temp_buf_scale                      (TempBuf *buf,
                                                         gint width,
                                                         gint height);
TempBuf*            temp_buf_copy_area                  (TempBuf *src,
                                                         TempBuf *dest,
                                                         gint x,
                                                         gint y,
                                                         gint width,
                                                         gint height,
                                                         gint dest_x,
                                                         gint dest_y);
void                temp_buf_free                       (TempBuf *buf);
guchar*             temp_buf_data                       (TempBuf *buf);
guchar*             temp_buf_data_clear                 (TempBuf *buf);
gsize               temp_buf_get_memsize                (TempBuf *buf);

Description

Details

TempBuf

typedef struct {
  gint    bytes;      /*  the necessary info                             */
  gint    width;
  gint    height;
  gint    x, y;       /*  origin of data source                          */
  guchar *data;       /*  The data buffer. Do never access this field
                          directly, use temp_buf_data() instead !!       */
} TempBuf;


temp_buf_new ()

TempBuf*            temp_buf_new                        (gint width,
                                                         gint height,
                                                         gint bytes,
                                                         gint x,
                                                         gint y,
                                                         const guchar *color);

width :

height :

bytes :

x :

y :

color :

Returns :


temp_buf_new_check ()

TempBuf*            temp_buf_new_check                  (gint width,
                                                         gint height,
                                                         GimpCheckType check_type,
                                                         GimpCheckSize check_size);

width :

height :

check_type :

check_size :

Returns :


temp_buf_copy ()

TempBuf*            temp_buf_copy                       (TempBuf *src,
                                                         TempBuf *dest);

src :

dest :

Returns :


temp_buf_resize ()

TempBuf*            temp_buf_resize                     (TempBuf *buf,
                                                         gint bytes,
                                                         gint x,
                                                         gint y,
                                                         gint width,
                                                         gint height);

buf :

bytes :

x :

y :

width :

height :

Returns :


temp_buf_scale ()

TempBuf*            temp_buf_scale                      (TempBuf *buf,
                                                         gint width,
                                                         gint height);

buf :

width :

height :

Returns :


temp_buf_copy_area ()

TempBuf*            temp_buf_copy_area                  (TempBuf *src,
                                                         TempBuf *dest,
                                                         gint x,
                                                         gint y,
                                                         gint width,
                                                         gint height,
                                                         gint dest_x,
                                                         gint dest_y);

src :

dest :

x :

y :

width :

height :

dest_x :

dest_y :

Returns :


temp_buf_free ()

void                temp_buf_free                       (TempBuf *buf);

buf :


temp_buf_data ()

guchar*             temp_buf_data                       (TempBuf *buf);

buf :

Returns :


temp_buf_data_clear ()

guchar*             temp_buf_data_clear                 (TempBuf *buf);

buf :

Returns :


temp_buf_get_memsize ()

gsize               temp_buf_get_memsize                (TempBuf *buf);

buf :

Returns :