Jump to content

setting picture size


Recommended Posts

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

Link to comment

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.

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.