[Gfx2Texture]|[nil] Texture = BinaryFile.parseImage(self, bytesToRead)


Parses an image from the stream and returns the image data in a Gfx2Texture

Parameters


self

BinaryFile

The instance of self

bytesToRead

integer | "nil

How many bytes to read, nil would be everything ahead (:size() - :tell())

Return Value


Texture

Gfx2Texture | nil

The texture that was read