: : : do you know, in what format pascal saves images with getmage procedure?
: : :
: : It saves them in the same format as the data in the screen buffer.
: I know ... but I need to know exactly how does it saves data to screen buffer ... I must show BMP 4-bit file to the screen without using putpixel procedure ... just with putimage and i don't know, what's structure of data in buffer.
: I'd really get use for some help
: thanks ... Mojm
I hope I'm not misunderstanding you again. Here's a link that will get you the internal structure of a four-bit .bmp:
In the screen buffer each pixel has its own color data that is stored immediately after the pixel itself. The bad news is that all of the X,Y stuff is taken care of by your RTL. You will have to deal with screen resolutions and all of that. You're in for a bit of coding. I don't know what kind of tools you're using, but if you want to know how Pascal stores the data internally, write a little proc that gets a *small* bit of the screen and look at it with your debugger. Declare the variable as a local, and it will be in the stack segment. If I'm still off the mark post back.