getTexture

fun getTexture(textureRect: RectF, side: Int): Bitmap?

Getter for textures. Creates Bitmap sized to nearest power of two, copies original Bitmap into it and returns it. RectF given as parameter is filled with actual texture coordinates in this new unscaled texture Bitmap.

Return

texture for required page side or null if not available.

Parameters

textureRect

instance where original texture coordinates will be stored.

side

side of the page for which texture is required.