Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Goodlife

Buffer to GIF

This topic is 6924 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all... I know this is a long shot, but does anyone have a routine that can save a 256-color buffer into a GIF file, or a JPEG? I have these components: char pal[768]; // RGB entries char *data; // The data to be stored short width,height; // Width and height of the buffer I looked up the GIF file format, and I''m about to start a probable two-day ordeal with it, but I wanted to see if anything had done this, and was willing to share code. Thanks in advance! -- Goodlife ----------------------------- Think of your mind as a door on a house. Leave the door always closed, and it's not a house, it's a prison. Leave the door always open, and it's not a house, it's a wilderness-- all the vermin creep in.

Share this post


Link to post
Share on other sites
Advertisement
I know this probably isn''t the answer you want to hear, but is it possible to just save the image to an ''easy'' file format like BMP and then use a paint program to convert it for you? It will save a lot of coding, but then again, depending on your particular use for this, you could be doing a lot of manual conversions.

Share this post


Link to post
Share on other sites
Alas, and woe is me, no.

This is for the web page I''m doing to promote my game. I need to generate the results of a survey. I know how to pass the contents of a GIF file to a web page, so I need to generate the GIF itself...


-- Goodlife

-----------------------------
Think of your mind as a door on a house. Leave the door always closed, and it's not a house, it's a prison. Leave the door always open, and it's not a house, it's a wilderness-- all the vermin creep in.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!