Python rgbimg Functions

EditRocket provides the following information on rgbimg functions in the Python source code builder.

longimagedata(file) - This function reads and decodes the image on the specified file, and returns it as a Python string.

longstoimage(data, x, y, z, file) - This function writes the RGBA data in data to image file file.

sizeofimage(file) - This function returns a tuple (x, y) where x and y are the size of the image in pixels.

ttob(flag) - This function sets a global flag which defines whether the scan lines of the image are read or written from bottom to top (flag is zero, compatible with SGI GL) or from top to bottom (flag is one, compatible with X).