LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview-C # rotate bitmap image

Solved!
Go to solution

I'm working on an example and want to turn this picture into the angle I want. But I have no idea how this will happen. Has anyone had problems with this problem before?

 

Every opinion on this matter is worth respecting.

Download All
0 Kudos
Message 1 of 16
(2,896 Views)

Hi worker,

 

your VI is missing a subVI "Load Bitmap from File"…

 


@constructionworker wrote:

I'm working on an example and want to turn this picture into the angle I want. But I have no idea how this will happen. Has anyone had problems with this problem before?


Which problem are you asking for? The problem of "having no idea"? 😄

 

In your VIs there is nothing related to "angles". Which angle do you want to "turn" (aka rotate!?) your picture?

 

What about using 3rd party tools and call them using SysExec?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 16
(2,842 Views)

Hi,Sir Gerdw

 

 

The way I asked questions seemed a little confusing.excuse me.

 

I can read the png file from the file and convert it to a bitmap, but I want to turn this uploaded photo 360 degrees. I want to turn it to the angle I want with a numerical control.

 

I don't understand the situation you want to mean by 3rd party tools and SysExec.

 

What I want to do is read a png image file from the target and convert it to a bitmap, and simultaneously rotate this photo to the desired angle with a numerical control.

 

Best regards

Worker

 

 

0 Kudos
Message 3 of 16
(2,828 Views)

I can read a png and turn it into a cluster and get a flattened pixel and return it with the numeric control.

 

An example of this is attached below

 

 

How do I rotate a stuck dot bitmap photo? The problem is I can't find exactly how to use it in the bitmap and rotate the photo.

 

 

Every given idea is worthy of respect.

0 Kudos
Message 4 of 16
(2,815 Views)

Here is an ancient example which modified an even ancient-er example:

 

https://forums.ni.com/t5/LabVIEW/Example-quot-Rotate-Vase-vi-quot/m-p/1008501/highlight/true?profile...

0 Kudos
Message 5 of 16
(2,792 Views)

Hi Darin K

 

I don't think I can fully describe my problem. I tried to explain my problem with a photo I attached below.                 (Problem.png)

 

I also thank you for the example you gave, but this does not answer my problem.

 

 

Best Regards 

Worker

0 Kudos
Message 6 of 16
(2,745 Views)

you can convert a labview image to a .NET picture with the .vis rovided by Hooovahh in this post:

https://forums.ni.com/t5/LabVIEW/NET-picturebox-convert-to-LabView-image/m-p/3125944?profile.languag...

 

look at the Blockdiagram of "Load Image.vi" in "Image Manipulation DotNET.zip"

 

0 Kudos
Message 7 of 16
(2,731 Views)
Solution
Accepted by topic author constructionworker

 

 

the dot net icture box only displays an image, if the .vi is executed

note that the PictureBox Indicator must'n be inside the While Loop

I use a While Loop with polling (50 ms) - a While Loop with an Event Structure should be used (like Darin does)

 

rotate-any-angle.png

0 Kudos
Message 8 of 16
(2,720 Views)

I found a different method but this example works better.

 

 

 

 

 

 

 

 Alexderjuengere Thanks for sharing the information.

 

 

 

 

 

0 Kudos
Message 9 of 16
(2,711 Views)

How can we make the background color transparent.

 

I used creat mask.vi but it still didn't help.

0 Kudos
Message 10 of 16
(2,642 Views)