I'm trying to load an image that has been incbinned. Here's some sample code:
The sample fails at 'DrawImage' with 'Unhandled Exception: Attempt to access field or method of Null object', indicating the prior 'LoadImage' didn't succeed.
It will work if I remove the 'incbin::' and just load the image from a file, so I've imported all the required modules to load and display a png image.
It will work with the 'incbin::' if I take out the framework command, suggesting that I'm not importing the module that makes 'incbin::' work.
Which module do I need to import to get 'incbin::' working? I've tried every one I can think of.
Framework BRL.GLMax2D Import BRL.PNGLoader Graphics 1024, 768 Incbin "image.png" Global MyImage:TImage = LoadImage( "incbin::image.png" ) Repeat Cls DrawImage MyImage, 0, 0 Flip Until KeyHit( KEY_ESCAPE )
The sample fails at 'DrawImage' with 'Unhandled Exception: Attempt to access field or method of Null object', indicating the prior 'LoadImage' didn't succeed.
It will work if I remove the 'incbin::' and just load the image from a file, so I've imported all the required modules to load and display a png image.
It will work with the 'incbin::' if I take out the framework command, suggesting that I'm not importing the module that makes 'incbin::' work.
Which module do I need to import to get 'incbin::' working? I've tried every one I can think of.