Menu

#13 Saving Images

open
nobody
None
5
2006-02-28
2006-02-28
Jacob
No

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.

Discussion

  • Danny (nods)

    Danny (nods) - 2006-03-09

    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...

     
  • Jacob

    Jacob - 2006-03-13

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.