vamtoolbox.dlp.arrayimage#

teknohog/pygarrayimage

Module Contents#

Classes#

ArrayInterfaceImage

class vamtoolbox.dlp.arrayimage.ArrayInterfaceImage(arr, format=None, allow_copy=True)#

Bases: pyglet.image.ImageData

data#
get_data()#
_convert(format, pitch)#
_ensure_string_data()#
dirty()#

Force an update of the texture data.

view_new_array(arr)#

View a new array of the same shape. The same texture will be kept, but the data from the new array will be loaded. :Parameters:

arrarray

data supporting the __array_interface__ protocol. If rank 2, the shape must be (height, width). If rank 3, the shape is (height, width, depth). Typestr must be ‘|u1’ (uint8).