LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When rotating my custom .bmp image with Rotate Image Control.vi using the Rotate.llb, why is my rotated image coming up blank?

I downloaded the Rotate.llb and am trying to rotate a simple 24bit .bmp I made in Windows Paint, but the rotated image comes up blank.

I edited the default image control and indicator to have my image inside it and really don't know what else to do? The example works fine with the default image, I'm wondering if it has to do with my image properties?

I tried using "Picture to Pixmap" but to no avail. Any help would be greatly appreciated. I am attaching a screen shot of my results and the modified Rotate vi I am working on, thanks.

 

 

Download All
0 Kudos
Message 1 of 4
(3,099 Views)

Hello Sametron,

 

Give this a try:

 

Snippet.png

 

Regards,

 

Jeff L.

0 Kudos
Message 2 of 4
(3,074 Views)

Hi Jeff,

 

Thanks for the response. I could use this method, but I am trying to avoid using a path because this program will eventually be a distributable .exe and I do not want any constraints on the client's install path i.e. the image path. The NI example I was looking at does not use a path but rather seems to use an embedded picture. For now I have worked around my problem by just drawing a filled rectangle (all I need in the drawing is a line that rotates which indicates sensor tilt) but if there is a work around without the path, or a way to use the path but not an absolute path that would be good too.

0 Kudos
Message 3 of 4
(3,071 Views)

Hello Sametron,

 

Have a look at this. You could try using the strip path VIs and just include the .bmp  in the source files of your .exe.

 

Regards,

 

Jeff L.

0 Kudos
Message 4 of 4
(3,056 Views)