Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
need help with getimage Posted by mojm on 1 Sept 2003 at 3:01 PM
do you know, in what format pascal saves images with getmage procedure?
Report
Re: need help with getimage Posted by Perran on 2 Sept 2003 at 4:13 AM
: 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.
Report
Re: need help with getimage Posted by mojm on 2 Sept 2003 at 11:59 AM
: : 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
Report
Re: need help with getimage Posted by Perran on 3 Sept 2003 at 4:43 AM
: : : 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:

http://www.wotsit.org/search.asp?s=graphics

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.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.