GimpAdaptiveSupersample

GimpAdaptiveSupersample — Functions to perform adaptive supersampling on an area.

Functions

Description

Functions to perform adaptive supersampling on an area.

Functions

GimpProgressFunc ()

void
(*GimpProgressFunc) (gint min,
                     gint max,
                     gint current,
                     gpointer data);

Parameters

data

.

[closure]

GimpPutPixelFunc ()

void
(*GimpPutPixelFunc) (gint x,
                     gint y,
                     GimpRGB *color,
                     gpointer data);

Parameters

data

.

[closure]

GimpRenderFunc ()

void
(*GimpRenderFunc) (gdouble x,
                   gdouble y,
                   GimpRGB *color,
                   gpointer data);

Parameters

data

.

[closure]

gimp_adaptive_supersample_area ()

gulong
gimp_adaptive_supersample_area (gint x1,
                                gint y1,
                                gint x2,
                                gint y2,
                                gint max_depth,
                                gdouble threshold,
                                GimpRenderFunc render_func,
                                gpointer render_data,
                                GimpPutPixelFunc put_pixel_func,
                                gpointer put_pixel_data,
                                GimpProgressFunc progress_func,
                                gpointer progress_data);

Parameters

x1

left x coordinate of the area to process.

 

y1

top y coordinate of the area to process.

 

x2

right x coordinate of the area to process.

 

y2

bottom y coordinate of the area to process.

 

max_depth

maximum depth of supersampling.

 

threshold

lower threshold of pixel difference that stops supersampling.

 

render_func

function calculate the color value at given coordinates.

[scope call]

render_data

user data passed to render_func .

 

put_pixel_func

function to a pixels to a color at given coordinates.

[scope call]

put_pixel_data

user data passed to put_pixel_func .

 

progress_func

function to report progress.

[scope call]

progress_data

user data passed to progress_func .

 

Returns

the number of pixels processed.