Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

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

Report
Graphics and Images in 32bit platforms problem Posted by sewir on 22 Jul 2009 at 4:20 PM
Well, my problem is the next one.

My pc doesn´t support fullscreen mode (16 bit - 640x480) and all that I've found about graphics and insert images is for that resolution.

What I want to know is how to insert a bmp, gif or jpg image into a pascal program for a 32bit resolution (800x600 pixels minim) and show it of course. The image size is about 200x150 pixels.

If you can´t answer that problem, can you tell me some library that allowes to make some primitives forms in pascal for a 32 bit resolution screen, and how to use the library if it's possible?

Thanks you so much...
See you soon...
Report
Re: Graphics and Images in 32bit platforms problem Posted by Phat Nat on 23 Jul 2009 at 1:07 AM
Through DOS? Resolutions that high have terrible refresh rates. I used to play with high res graphics alot in Pascal and never figures out how to adjust refresh rates, but if you are determined, then you will want to use VESA modes.

For 800x600x32bit, you need to set mode 012Eh or $12E or 0x12E, however you prefer to write hex.

Anyways, to set the VESA mode:
ASM
   Mov Ax, $4F02
   Mov Bx, $12E
   Int $10
END;


Check here for more info:
http://en.wikipedia.org/wiki/VESA_BIOS_Extensions
Report
Re: Graphics and Images in 32bit platforms problem Posted by sewir on 23 Jul 2009 at 3:36 PM
My platform is Windows XP. I found a solution to compile programs with 640X480X16bit but I have to have an extern program that emulate DOS, and from that program execute my program.

Is there a way to work with pascal with its graphics libraries and insert images in windows XP-platform?

If there isn't, I aprecciate your help anyway...
Thanks you people...

(I'm learning english so something of I put could be wrong translated xD sorry)
Report
Re: Graphics and Images in 32bit platforms problem Posted by Atex on 25 Jul 2009 at 7:51 PM
If you use FP, you could download a bunch of stuff from here: http://www.freepascal.org/contrib/db.php3?category=Graphics



 

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.