View Single Post
  #2  
Old 03-02-2009, 09:30 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Here is code that will display an image in the lower left corner of the screen. Let me know if anything is unclear.
Code:
import viz
viz.go()

# Create texture from image file
image = viz.add('ball.jpg')

# Display image in lower left corner of screen
quad = viz.addTexQuad(parent=viz.ORTHO)
quad.alignment(viz.ALIGN_LEFT_BOTTOM)
quad.texture(image)
quad.setScale(image.getSize())
Reply With Quote