LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to decode a set of datas received from serial port and display image on a canvas based on CVI ?

> I could not find the function CreateBitmap

Sorry, I was meaning NewBitmap ( ), standard CVI function.

 

With reference to the color table, you can find a sample color table for grayscale images in ConvertFile or ConvertBMP functions in my sample. For an 8bpp image the color table should be 2^8 = 256 int values. Values in image data are indexes in that color table.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 11 of 14
(1,064 Views)

Hi !

Thank you very much for your help!

I'm sorry to tell you that I could not understand the  algorithm in your sample .I build  a  simple project in the attachment.

I'd like you to help me modify it and indicate mistakes in it .

 

You could help me when you have time.

Thank you very much indeed.

 

Best Regards.

 

I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
0 Kudos
Message 12 of 14
(1,045 Views)

Hi, when posting a sample project to the forum you do not need to include neither the cvibuild.xx directory nor *_dbg.* files: these are regenerated every time by the compiler so there is no need to add them; furthermore, they use a lot of web space on this site. As an example, your project with only the relevant files occupy only 6 kB of space!

 

On the other hand, in your case you must provide instead a sample image and the corresponding data as received through the serial port and dumped to disk, as they are necessary to try and test the algorithm.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 13 of 14
(1,042 Views)

Hi !

Thanks for your information and for being so helpful.

I'll see to it.

Best Regards.

I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
0 Kudos
Message 14 of 14
(1,039 Views)