Archived

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

Loading a BMP file into an array on Freepascal+svgalib under Linux

This topic is 6355 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

quote:
Original post by Jrz

1) I can''t write pascal
2) BMP is a format, you should know pascal and ask for the filespecs


OK.People!!!I need some help with BMP format!Who can help me with writing a unit that loads BMPs?!Or with BMP filespecs?
P.S.You didn`t get it.I have problems with understanding some filespecs
I got already.This is the very first time I work with graphical formats.

Share this post


Link to post
Share on other sites
People!!You gotta read more carefully!I already got all the filespecs from the wotsit.org!But I too stupid to understand those..

Share this post


Link to post
Share on other sites
Torn,

Though I once knew Turbo Pascal, I no longer can remember the syntax. In any case, I''m currently writing up an email for you to better understand it. It''s really simple, once you''ve gotten the gist of the matter. I''ll have that sent soon enough.

Pythius

Share this post


Link to post
Share on other sites
Basicly, what you have to do is read the header of the GFX file in a Type that holds the value according to the specs sheet. Once the header is read, what''s left of the file will be your GFX. you can then just read the data and store in your array...



Cyberdrek
Headhunter Soft
DLC Multimedia

Share this post


Link to post
Share on other sites