glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels)
Parameter pixels must be either a Python string, a gles.array object, or graphics.Image object.
Python strings are taken as literal data with no conversion. The dimension and type of data in
gles.array objects are ignored: the raw data in the array is used.
Use of graphics.Image objects is limited to only some combinations of format and type. Ta-
ble 5.6.3 below shows the accepted combinations. To get the best results and performance, the
CFbsBitmap object in the graphics.Image object should be in the equivalent display mode, also
shown in the table below. Otherwise, the CFbsBitmap object will be first converted to the equiva-
lent display mode before reading its pixel data, which can degrade the visual quality in some cases.