I want to be able to save images in TNT Basic in at
least two formats: tiff and jpg.
This would work just like the copy image command, for
tiffs you need two canvases: 1 for the image and 1 for
the mask.
A quick note Jacob, you can already save image files in your own proprietary
format. Create a data file and save the width and height of the image to the file,
then loop through the image a pixel at a time, writing the colour value to the file
as you go. When you load it, create a blank image of the correct size (first two
integers) and enter two loops (column, row) and plot each pixel based on the
colour value held in the file. This approach could be extended to include mask
data if required. Just a thought...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1285990
A quick note Jacob, you can already save image files in your own proprietary
format. Create a data file and save the width and height of the image to the file,
then loop through the image a pixel at a time, writing the colour value to the file
as you go. When you load it, create a blank image of the correct size (first two
integers) and enter two loops (column, row) and plot each pixel based on the
colour value held in the file. This approach could be extended to include mask
data if required. Just a thought...
Logged In: YES
user_id=1444683
I thought of that way of doing it before, but I want to be
able to use the images that I make in my TNT Basic app.