LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

display a big bitmap file

I use LabWindows/CVI 5.0.1.
I want to display a big Bitmap file.
The size of the file is about 24M. The file is 5000 pixel * 5000 pixel
* 8 bit.
The file is a map.
The GetBitmapFromFile return static is -12.
CVI can not load the big Bitmap file. CVI help mean 'memory is over.

How can I display the file ?
0 Kudos
Message 1 of 2
(2,887 Views)
> I use LabWindows/CVI 5.0.1.
> I want to display a big Bitmap file.
> The size of the file is about 24M. The file is 5000 pixel * 5000 pixel
> * 8 bit.
> The file is a map.
> The GetBitmapFromFile return static is -12.
> CVI can not load the big Bitmap file. CVI help mean 'memory is over.
>
> How can I display the file ?
You will not be able to display it in a Canvas, there's a bug/limitation in
CVI and it won't display over someting like 3000 pixels wide. What I do is
load in memory (as a char*) and then break it to pieces and display it in
separate canvases. It's a waste of time but I have no better to offer...
-----------
Guillaume Dargaud
CNR/IFA
http://sung3.ifsi.rm.cnr.it/~dargaud/
http://sung3.ifsi.rm.cnr.it/~domec/
http://www.appennini.it/roma8000/
ht
tp://sodarserver.ifa.rm.cnr.it/
"There are three kinds of lies: lies, damned lies, and statistics." 
Disraeli (1804-81), British statesman.
0 Kudos
Message 2 of 2
(2,887 Views)