pyjsdl :: surfarray :: ImageRGB :: Class ImageRGB

Class ImageRGB

       object --+    
                |    
pyjsarray.Ndarray --+
                    |
                   ImageRGB

Array of pixel data arranged by width/height in RGB format. Array data derived from ImageData.
Instance Methods
 
__init__(self, imagedata)
Generate an N-dimensional array of TypedArray data.
 
getImageData(self)
Get ImageData.

Inherited from pyjsarray.Ndarray: __abs__, __add__, __and__, __div__, __divmod__, __eq__, __floordiv__, __ge__, __getitem__, __getslice__, __gt__, __iadd__, __iand__, __idiv__, __ifloordiv__, __ilshift__, __imod__, __imul__, __invert__, __ior__, __ipow__, __irshift__, __isub__, __iter__, __itruediv__, __ixor__, __le__, __len__, __lshift__, __lt__, __matmul__, __mod__, __mul__, __ne__, __neg__, __or__, __pos__, __pow__, __repr__, __rshift__, __setitem__, __setslice__, __str__, __sub__, __truediv__, __xor__, astype, cmp, copy, empty, fill, getArray, getshape, matmul, op, reshape, set, setshape, shape, swapaxes, tolist, view

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, imagedata)
(Constructor)

 

Generate an N-dimensional array of TypedArray data.
Argument can be size (int or tuple) or data (list or TypedArray).
Optional argument dtype specifies TypedArray data type:
        'uint8c'    Uint8ClampedArray
        'int8'      Int8Array
        'uint8'     Uint8Array
        'int16'     Int16Array
        'uint16'    Uint16Array
        'int32'     Int32Array
        'uint32'    Uint32Array
        'float32'   Float32Array
        'float64'   Float64Array
Operator and index functionality requires __pragma__ ('opov'). 

Overrides: object.__init__
(inherited documentation)