aka Posted May 16, 2007 Report Share Posted May 16, 2007 hi there, trying to set the size of a picture, i read its "rect" data and then pass this to: draw flattened pixmap.vi or draw rect.vi i get no errors, neither control over the size... the question really is: a) how to create a new (empty) pic of a specified size b) how to control the borders when opening an existing pic so that they fit perfectly around it c) is it possible to display a pic without borders? working on LabView 6.0 ad 7.0 thanks a lot, alex Quote Link to comment
eaolson Posted May 16, 2007 Report Share Posted May 16, 2007 It sounds like you are getting the image data mixed up with the Picture control that will contain the image. All that Draw Flattened Pixmap does is take a cluster of image data and turns that into a LabVIEW picture data type. You then need to wire the picture output of that VI to a Picture control. You can set the size of the Picture control with a property node using the Draw Area Size property. I don't think you can actually turn off the border, but you might be able to customize the Picture control and set its border color to transparent. Quote Link to comment
aka Posted May 23, 2007 Author Report Share Posted May 23, 2007 eaolson, you're right-thanks for the pointer! for future reference: Q: how to create a new (empty) pic of a specified size Ans: http://forums.lavag.org/index.php?act=attach&type=post&id=5914 Q: how to control the borders when opening an existing pic so that they fit perfectly around it Ans: http://forums.lavag.org/index.php?act=attach&type=post&id=5913 Q: is it possible to display a pic without borders? Ans: the way is to customize the Picture control and move its border color to the background (the actual figure in on a 'higher' layer, thus covering the border). this works even when the picture control is programmatically resized. alex Quote Link to comment
crelf Posted May 23, 2007 Report Share Posted May 23, 2007 QUOTE(aka @ May 23 2007, 03:55 AM) for future reference: Lookslike the start of a great http://wiki.lavag.org/' target="_blank">wiki article... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.