I assume this must be a school project of some sort where you have to do it this way. If you want a border or a frame look around your pictures, you can put your pictures in an HTML table and change the thickness of the border of the table. Doing it in C++ is more than overkill. You'd have to read the image as binary, calculate coordinates, deal with palettes, then reconstruct the image file. Even if you knew C++ well, it might require a little bit of work if you had a good library. Then you'd have to make it CGI accessible. Good luck.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
MoveToEx(startoffilex+4,startoffiley+4);
LineTo(endoffilex-4,startoffiley+4);
LineTo(endoffilex-4,endoffiley-4);
LineTo(startoffilex+4,endoffiley-4);
LineTo(startoffilex+4,startoffiley+4);
That's to draw the frame. To get the bigger picture, just make a new bitmap with 8 pixels more width and height, and bitblt into the middle.
I could probably do it in a day, but I'm too lazy to, and he already said he made it output HTML.
Yes, you could, like I said before, if you use premade libraries. I've had to do this from scratch in Turbo Pascal and let me tell you, it didn't take a day. :cool:And he doesn't have to make it CGI accessible. He can just use it to make the pictures with frames, and use tags to place the framed pictures in.How else would he access the C++ program from the page to access the modified images? I don't think he meant to say C++ though, but I could be wrong. It would just be overkill for what he wants to do.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18