question about :timage

BlitzMax Forums/BlitzMax Programming/question about :timage

AvestheFox(Posted 2012) [#1]
I've only been using Blitzmax for a little over a year now. I've never used :timage with my image files, but I've seen it used in quiet a bit of sample code (and bits of code on these forums)

Only recently have I been learning about methods and how they're used, and I'm starting to notice that the :timage type has its own set of methods (or something similar) like 'image.handle_x' and 'image.handle_y'

I've tried looking this stuff up in the BMax docs to see what other methods it supported, but it seems that either I've got a bad copy of the documentation, or the :timage doc was intentionally left blank.

So could someone tell me about timage and how it could benefit my work?

thanks in advance! :)


Derron(Posted 2012) [#2]
Rebuild Docs.

Use "Superstrict" - then you will get known to ":timage" (as it is needed than if you intend to store the image in variables)

Instead of using a "made for easy handling" function like
DrawImage(image:timage, x:float,y:float,...)
you can also write
image.draw(x,y ...)

as DrawImage is just a wrapper function to call the image's draw-method.


To get further insight: open the /mod/brl.../timage.bmx file.
If you don't know where the information is stored, have grep in your terminal of choice looking for "type timage".

bye Ron


AvestheFox(Posted 2012) [#3]
I've tried rebuilding the docs, but with no success. I'll give those files a look though. c.c

thanks for the info!