[comp.os.msdos.programmer] Turbo Pascal Graphics. HELP!

rostowda@mentor.cc.purdue.edu (David Rostowsky) (02/07/91)

Im using version 5.5 of Turbo Pascal to do some graphics for a program that
I am writing. I want to save the screen to disk, but when I do an ImageSize
command, I get an error. I realize that if the image is going to take up more 
than 64K I will get the error, but what I want to know is there a way around
this memory restriction??????  How do I go about saving almost a whole 
screen of graphics??

Thanks!

mcastle@mcs213f.cs.umr.edu (Mike Castle {Nexus}) (02/07/91)

In article <5349@mentor.cc.purdue.edu> rostowda@mentor.cc.purdue.edu (David Rostowsky) writes:
>
>this memory restriction??????  How do I go about saving almost a whole 
>screen of graphics??

Simple fix:  Divide the screen up into 4 or more sections.  2 May work.

Amazingly simple, eh?  :->
-- 
Mike Castle (Nexus) S087891@UMRVMA.UMR.EDU (preferred)       | RN ate my 
                mcastle@mcs213k.cs.umr.edu (unix mail-YEACH!)| .newsrc!
Life is like a clock:  You can work constantly, and be right | I am not
all the time, or not work at all, and be right twice a day.  | happy :-<

ts@uwasa.fi (Timo Salmi) (02/08/91)

In article <5349@mentor.cc.purdue.edu> rostowda@mentor.cc.purdue.edu (David Rostowsky) writes:
>
>Im using version 5.5 of Turbo Pascal to do some graphics for a program that
>I am writing. I want to save the screen to disk, but when I do an ImageSize
>command, I get an error. I realize that if the image is going to take up more 
>than 64K I will get the error, but what I want to know is there a way around
>this memory restriction??????  How do I go about saving almost a whole 
>screen of graphics??

The obvious solution is to save the screen in parts, each one < 64K. 
It is simple as that.  And it works.  Usually four parts is enough,
but this naturally depends. 

...................................................................
Prof. Timo Salmi        
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun