I would like to know if it is possible to create a GIF image using the filesystem object in ASP in a similar way to creating a text file.
I know you can create other files using custom objects, such as PDFs but I was thinking that if I knew the format of a GIF image and had the raw data then I could write the file and convert it to hex then save it, thus creating the image.
Obviously I don’t know the GIF file format though so any other suggestions would be great.
In case you are wondering, I currently have a page in ASP with a palette and canvas, you can click on the colours in the palette and then click on the canvas to turn the ‘pixels’ that colour, the pixels are just table cells that change the bgcolor.
It is just a sort of fun little drawing page I wrote, but I think it would be really cool if I could take the thing that is drawn in the table and save it as a real image.
I know you can create other files using custom objects, such as PDFs but I was thinking that if I knew the format of a GIF image and had the raw data then I could write the file and convert it to hex then save it, thus creating the image.
Obviously I don’t know the GIF file format though so any other suggestions would be great.
In case you are wondering, I currently have a page in ASP with a palette and canvas, you can click on the colours in the palette and then click on the canvas to turn the ‘pixels’ that colour, the pixels are just table cells that change the bgcolor.
It is just a sort of fun little drawing page I wrote, but I think it would be really cool if I could take the thing that is drawn in the table and save it as a real image.