campy.graphics.gbufferedimage module

A GBufferedImage wraps an image and buffers its pixel data.

class campy.graphics.gbufferedimage.GBufferedImage(x=0, y=0, width=1, height=1, bg_color=0)[source]

Bases: object

WIDTH_HEIGHT_MAX = 65535
bounds
clear()[source]
count_diff_pixels(other, bounds=None)[source]
diff(other, diff_color=14483677)[source]
fill(color)[source]
fill_region(x, y, width, height, TODO)[source]
from_grid(grid)[source]
get_height()[source]
get_rgb(x, y)[source]
get_rgb_string(x, y)[source]
get_width()[source]
in_bounds(x, y)[source]
load(filename)[source]
classmethod load_from_file(filename)[source]
resize(width, height, retain=True)[source]
save(filename)[source]
set_rgb(y, TODO)[source]
to_grid()[source]