Re:Bitmaps, JPEGs and memory
On Mon, 09 Feb 1998 09:21:08 -0600, Wayne Herbert
Quote
<wherb...@keymaps.com> wrote:
>I compute 800 x 600 x 3 (# of bytes per pixle for true color) yields 1.44
>meg for this size bitmap, not quite the 2.7 you mentioned. But, you are
>correct... each bitmap in memory takes space and 3 of teh pupiies at 800 x
>600 will occupy about 4.5 meg.
The 1.44M does appear to be right (the mathematics are indisputable
<g>), although I just tried using Windows95 "System Monitor" and I
came up with 2.5M at 640x480 resolution (I'm using two bitmaps). The
surprising thing was that I only came up with 2.7M running at 800x600.
Does this mean that the 1.44M is dependent on the JPEG parameters
(800x600) that are copied to the Bitmap, and not the size of the
screen resolution?
Also, I would like to check for enough available memory on the user's
system when the program starts up but can't find the appropriate code
in Delphi 3's help files. Is there a quick and easy way to code for
this?
Thanks,
Russ