LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using RGB Values to Create a Colorful Image

Salutations

I'm passing 3 sine waves into the RGB calculator. All the values are between 0 and 255 (as necessary) and in the end it returns an RGB Value. What I want to do is take these RGB Values and put them onto an image. Hence creating a picture of about a gigabazmillion colors.

I looked through some of LabView's default picture manipulation vi's, and some had the capability of passing the RGB value, but I've been without luck.


Thanks for your time,
ElSmitho
0 Kudos
Message 1 of 3
(2,813 Views)
Big El,

I think you can ditch the RGB To Color block, if that's what you're using.

If I understand your description, what you need to do is use Interleave 1D Arrays to combine your three sine arrays together into one long array. Then use Draw Flattened Pixmap to turn the array into a picture. You can use Bundle By Name to stick your interleaved array into the image data cluster, and also make sure to specify 24-bit image depth and an appropriate bounding box.

Hope that makes sense,
John
Message 2 of 3
(2,798 Views)
Solid showing, thanks a lot.

Sadly, i'm currently so complex that i crash labview like a pro in doing it, but your advice works wonderfully. Thank you.

Sincerely,
ElSmitho
0 Kudos
Message 3 of 3
(2,786 Views)