BufferSurface
Object Hierarchy:
Granite.Drawing.BufferSurface
Granite.Drawing.BufferSurface
Granite.Drawing.BufferSurface
GLib.Object
GLib.Object
GLib.Object->Granite.Drawing.BufferSurface
Description:
public class BufferSurface : Object
A buffer containing an internal Cairo-usable surface and context, designed for usage with large, rarely updated draw operations.
Content:
Properties:
public Context context { get ; }
The Cairo.Context for the internal surface.
All drawing operations done on this Granite.Drawing.BufferSurface should use this context.
public int height { get ; }
The height of the BufferSurface, in pixels.
public Surface surface { get ; }
public int width { get ; }
The width of the Granite.Drawing.BufferSurface
, in pixels.
Creation methods:
public BufferSurface (int width, int height)
Constructs a new, empty
Granite.Drawing.BufferSurface with the supplied dimensions.
public BufferSurface.with_buffer_surface (int width, int height, BufferSurface model)
Constructs a new, empty
Granite.Drawing.BufferSurface with the supplied dimensions, using the supplied
Granite.Drawing.BufferSurface as a model.
public BufferSurface.with_surface (int width, int height, Surface model)
Constructs a new, empty
Granite.Drawing.BufferSurface with the supplied dimensions, using the supplied Cairo.Surface as a
model.
Methods:
public Color average_color ()
Averages all the colors in the internal
Cairo.Surface .
public void clear ()
Clears the internal Cairo.Surface , making
all pixels fully transparent.
public void exponential_blur (int radius)
Performs a blur operation on the internal
Cairo.Surface , using an exponential blurring algorithm. This method is usually the fastest and produces good-looking results
(though not quite as good as gaussian's).
public void fast_blur (int radius, int process_count = 1 )
public void gaussian_blur (int radius)
Performs a blur operation on the internal
Cairo.Surface , using a gaussian blurring algorithm. This method is very slow, albeit producing debatably the best-looking
results, and in most cases developers should use the exponential blurring algorithm instead.
public Pixbuf load_to_pixbuf ()
Creates a Gdk.Pixbuf from internal
Cairo.Surface .
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref