Welcome to Dream.In.Code
Become an Expert!

Join 150,358 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,790 people online right now. Registration is fast and FREE... Join Now!




Image saving algorithm(s)

 
Reply to this topicStart new topic

Image saving algorithm(s), Does anyone know any good image-saving algorithms for a lesser coding/

Tigairius
14 May, 2008 - 07:35 PM
Post #1

New D.I.C Head
*

Joined: 14 May, 2008
Posts: 1

I'm using a scripting language that is a branch off of "Torque Script" which is comparable to C++. This language doesn't have any way to save image files on your own, so I will have to actually write text in to a text file and simply save the text file as a .* image file. I was hoping someone could be able to point me in the direction of some documentation regarding saving images as text or any good algorithms for any file type. Sorry I don't really have any code to show right now, as I don't have any algorithm to start with. Thanks for any help I can get! (By the way, the reason I posted it in here is because it's actually a scripting language for a game that is compiled by the game).

This post has been edited by Tigairius: 14 May, 2008 - 07:36 PM
User is offlineProfile CardPM
+Quote Post

bobjob
RE: Image Saving Algorithm(s)
16 May, 2008 - 05:07 PM
Post #2

D.I.C Head
**

Joined: 29 Mar, 2008
Posts: 66



Thanked: 1 times
My Contributions
How are images used in the programs you are making?

How is the pixel data managed? is it RGB? is each color value represented by a INT? or a BYTE? or is the color a single INT?

i would like to help but i would need toknow more about how you want to access the image once its loaded. will it be loaded into the program, as some sort of canvas that the program can use. or just as a collection of variables?

Here is some basic (C++) ways of loading ".bmp" files. I know ur not using C++ but you should be able to get a basic understanding of used image format.

bmp file information
example code of loading a BMP


Worst case senario if this is to dificult for you, outline the format of your current image script, hows is it saved in your text file? and i can try program a converter for you to use external from the program. So that you can save it as any type.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 01:24PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month