![]() |
#1
|
|||
|
|||
Resizing viz.BUTTON to fill image
Hello,
I am using button.uppicture('filename.jpg') to add a texture to a button, however the button does not seem to expand to fit the image size. The button does not contain a setSize() function, does anyone have an idea on how to retain the texture size on the button? best |
#2
|
|||
|
|||
You can try scaling the button:
Code:
button = viz.addButton(pos=[0.5,0.5,0]) button.setScale([3]*3) texture = viz.addTexture('lake3.jpg') button.texture(texture) |
![]() |
Tags |
viz.addbutton, vizdlg |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
wrong background color in interlaced stereo image | rlh001 | Vizard | 4 | 09-25-2013 04:21 PM |
360 panorama image cube using as darts target and record the xy coordinates | mshukun | Vizard | 2 | 03-14-2013 06:17 AM |
3-D image in Powerwall using OpenGL c++ program | blessonisaac | Plug-in development | 0 | 02-01-2012 09:22 AM |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 11:13 AM |
View an image on the Fakespace HMD | roman_suvorov | Vizard | 16 | 05-23-2008 07:51 AM |