WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-27-2015, 06:10 PM
fabricemarcelin fabricemarcelin is offline
Member
 
Join Date: May 2013
Posts: 3
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
Reply With Quote
  #2  
Old 07-28-2015, 04:00 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,454
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)
Reply With Quote
Reply

Tags
viz.addbutton, vizdlg

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -7. The time now is 07:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC