Loading a BMP file into an array on Freepascal+svgalib under Linux
In reality this is Freepascal + svgalib.
Maybe this is a lame problem, but I`ve gotta solve it!
Maybe this is a lame problem, but I`ve gotta solve it!
Noone`s perfect
1) I can''t write pascal
2) BMP is a format, you should know pascal and ask for the filespecs
2) BMP is a format, you should know pascal and ask for the filespecs
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.
Noone`s perfect
Look at Wotsit.org for file specifications.
- Ben
- Ben
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
July 17, 2000 04:44 PM
People!!You gotta read more carefully!I already got all the filespecs from the wotsit.org!But I too stupid to understand those..
Noone`s perfect
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
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
"The object of war is not to die for your country, but to make the other bastard die for his"
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
Cyberdrek
Headhunter Soft
DLC Multimedia
[Cyberdrek | ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement