GLImageItem

class pyqtgraph.opengl.GLImageItem(data, smooth=False, glOptions='translucent')[source]

Bases: GLGraphicsItem

Displays image data as a textured quad.

__init__(data, smooth=False, glOptions='translucent')[source]
Arguments:  
data Volume data to be rendered. Must be 3D numpy array (x, y, RGBA) with dtype=ubyte. (See functions.makeRGBA)
smooth (bool) If True, the volume slices are rendered with linear interpolation
initializeGL()[source]

Called after an item is added to a GLViewWidget. The widget’s GL context is made current before this method is called. (So this would be an appropriate time to generate lists, upload textures, etc.)

paint()[source]

Called by the GLViewWidget to draw this item. It is the responsibility of the item to set up its own modelview matrix, but the caller will take care of pushing/popping.