I'm trying to learn a bit about images and graphics using examples from the forum and some other sources and I keep running into things that no longer seem to work. My current problem is with the useimage() function which appears in a lot of the posted code.
Is there any documentation showing how to replace that function or how to safely eliminate it or some way to deal with it so I can make the examples work and play with them a bit.
Any help will be appreciated.
Thanks,
Barry
Using examples with changed functions
Re: Using examples with changed functions
There is some light documentation in the Help file under "changes". You should look for the commands that you are interested in.barryem wrote:Is there any documentation showing how to replace that function or how to safely eliminate it or some way to deal with it so I can make the examples work and play with them a bit.
In the meantime here are some tips.
UseImage(#image) was used to select an image that was to be used for all following commands dealing with images and its return value was the image ID.
Image commands were changed to address which image they were operating on by setting one of their parameters. This parameter can be specified by using ImageID(#image). Some commands would effectively set the active image for commands that followed it (i.e. CreateImage() would do this).
Here's a simple example:
Code: Select all
UseImage(#myImage)
result = ImageHeight()
;would be changed to:
result = ImageHeight(ImageID(#myImage))
Similar types of changes were also made with other libraries from v4.00 forward. These included the Window, Font, File, File System, Database, Movie, and Image libraires.
If you have a specific example post it or link to it and we can work through what the changes would be.
Re: Using examples with changed functions
Thanks. I'll play with your suggestions and see what happens.
I don't really have code to post at the moment. I'm not writing anything, just trying to figure out how all this works. I'm pretty confused and i'm usually unclear on just what parts are confusing me.
I'll keep playing with it and post more questions as I have them, and possibly some examples if that seems appropriate.
Barry
I don't really have code to post at the moment. I'm not writing anything, just trying to figure out how all this works. I'm pretty confused and i'm usually unclear on just what parts are confusing me.
I'll keep playing with it and post more questions as I have them, and possibly some examples if that seems appropriate.
Barry