LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BMP from Array

Hey All,

 

I'm trying to create a 608 x 684 BMP image from an array. Is there an easy way to get an array that large? Can i create a smaller array to scale and then scale it up somehow?

 

Thanks

0 Kudos
Message 1 of 4
(2,455 Views)

From the sounds of it, what you are looking for is the generation of a Pixmap. What do you wish to do with this array? Are you building it yourself, converting a picture into it or what? 

 

608*684 is not really that large of a size for an array, but if you know the size before hand you will be better of preallocating then building dynamically.

0 Kudos
Message 2 of 4
(2,443 Views)

Hi

 

Can you use Vision Development System ?

If you can, an easy way is to use IMAQ function.

On this thread, Christopher W created nice example.

http://forums.ni.com/t5/LabVIEW/how-to-transform-LabVIEW-type-picture-to-IMAQ-type-picture/td-p/3542...

Please check it.

 

And then, use "Image to Array" function.

http://www.ni.com/example/30679/en/

 

Good luck.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 3 of 4
(2,439 Views)

What is the representation of the array element (e.g. U8 grayscale or colormap? RGB?)

608 x 684 is NOT large!

How do you create the array? Why do you think you save memory if you create it small and the scale up? In the end, the scaled up array would still use the full size after all, nothing gained, and the smaller array would just be a waste of extra allocation.

0 Kudos
Message 4 of 4
(2,436 Views)