LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Picture control forgets its image after resizing

Solved!
Go to solution

Darin.K wrote:
Before you resize, try Picture to Bitmap followed by Draw Flattened Pixmap to get your picture back.  If you have a lot of overlapping picture elements, flattening should speed the drawing process.

That method (at least how I implemented it) doesn't operate faster, and results in an image with less resolution.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 11 of 14
(984 Views)

elset191 wrote:
Where did you learn/what made you think to try concatenate strings on images?

 

Take alook at this post by Norm Kirshner (Ex-LabVIEW Champion now with NI). He does a partial brain dump re:hacking the picture. I don't know if his comments are complete (I did not follow eveyrything he said).

 

If you type cast as a string you will see waht look very similar to HPGL (HP Graphic Language) used for plotter back when GPIB was called HPIB.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 12 of 14
(979 Views)
Solution
Accepted by topic author elset191

Just a crazy thought before you dive into the world of pictures.  Could you simply redraw at the smaller scale instead of resizing?  I forgot that your real application isn't as simple as the example, so yes, scaling a bitmap image could lead to some ugliness.

 

Great post that Ben linked to, I should have remembered that one.  I came across it a few weeks ago, and it was one of my favorite replies to one of my favorite threads.  Trying to delve into the inner workings of LV in order to push the envelope, there is a person after my own heart!

 

Message 13 of 14
(966 Views)

Darin.K wrote:

Just a crazy thought before you dive into the world of pictures.  Could you simply redraw at the smaller scale instead of resizing? 


That's how I'm doing it.  Not ideal, but it redraws fast enough to be sufficient.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 14 of 14
(932 Views)