Center the image

From Interaction Station Wiki
Jump to: navigation, search

the center point should be the :

x=(display window's width - the image width) divided by 2

y=(display window's Hight- the image height) divided by 2


  1. image(images[imgInSeq], (displayWidth-images[imgInSeq].width)/2, (displayHeight-images[imgInSeq].height)/2, images[imgInSeq].width, images[imgInSeq].height );