Type Function Return value MemoryBitmap Revision 2017.3060 Keywords memoryBitmap, newTexture See also memoryBitmap.*
Creates a MemoryBitmap object which allows you to access an
Created textures are subject to manual texture memory management. See the Texture Loading/Management guide for more information.
memoryBitmap.newTexture( params )
Table. Table containing the required parameters for the new object — see the next section for details.
Number. Pixel width of the new bitmap. Note that some systems require bitmap widths to be divisible by 4 in order to be stored in the GPU. In practice, this means that width should be divisible by 4 if format is "rgb" or "mask".
Number. Pixel height of the new bitmap.
String. Pixel format for the new bitmap. This should be one of the following values:
"rgba" (default) — "rgb" — "mask"—