[Insert name here] Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
enum PMType; void tile_source_init_from_drawable (TileSource *tile_source, GimpDrawable *drawable, gint x, gint y, gint width, gint height); GimpTile* tile_source_get_tile (TileSource *tile_source, const gint x, const gint y); void tile_source_tile_unref (TileSource *tile_source, GimpTile *tile); void tile_sink_init_from_drawable (TileSink *tile_sink, GimpDrawable *drawable, gint x, gint y, gint width, gint height); void tile_sink_init_for_preview (TileSink *tile_sink, GimpDrawable *drawable, gint x, gint y, gint width, gint height); void tile_sink_free_buffers (TileSink *tile_sink); GimpTile* tile_sink_get_tile (TileSink *tile_sink, const gint x, const gint y); void tile_sink_tile_unref (TileSink *tile_sink, GimpTile *tile); void tile_sink_get_row (TileSink *tile_sink, guchar *buf, gint x, gint y, gint width); |
void tile_source_init_from_drawable (TileSource *tile_source, GimpDrawable *drawable, gint x, gint y, gint width, gint height); |
Initialize a TileSource to use a GimpDrawable. It can then be used to get tiles from the rectangle (x, y, width, height) in the drawable. see tile_source_get_tile() and tile_source_tile_unref()
tile_source : | The TileSource that is initialized. |
drawable : | The GimpDrawable that is used as the real source of tiles. |
x : | Leftmost position in the drawable that will be used. |
y : | Topmost position in the drawable that will be used. |
width : | Width of the rectangle in the drawable that will be used. |
height : | Height of the rectangle in the drawable that will be used. |
GimpTile* tile_source_get_tile (TileSource *tile_source, const gint x, const gint y); |
Get the tile that contains the point (x, y). When this tile is no longer needed it must be released with tile_source_tile_unref().
void tile_source_tile_unref (TileSource *tile_source, GimpTile *tile); |
Release the tile. This function must always be called when the tile is no longer needed.
void tile_sink_init_from_drawable (TileSink *tile_sink, GimpDrawable *drawable, gint x, gint y, gint width, gint height); |
void tile_sink_init_for_preview (TileSink *tile_sink, GimpDrawable *drawable, gint x, gint y, gint width, gint height); |
GimpTile* tile_sink_get_tile (TileSink *tile_sink, const gint x, const gint y); |