# Changing Location of Image on Screen (with Different Size Images)

**URL:** <https://psychtoolbox.discourse.group/t/changing-location-of-image-on-screen-with-different-size-images/415>\
**Category:** Uncategorized\
**Created:** [September 11, 2012, 3:18am UTC](https://psychtoolbox.discourse.group/t/changing-location-of-image-on-screen-with-different-size-images/415 "2012-09-11T03:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [September 11, 2012, 3:18am UTC](https://psychtoolbox.discourse.group/t/changing-location-of-image-on-screen-with-different-size-images/415/1 "2012-09-11T03:18:16Z")

</div>

Hi,  
  
I'd like to change the position of the image on the screen (more specifically, I want to move the picture from the center to closer to the top of the screen). I understand that I can specify the location of an image by using drawtexture and entering the coordinates of the four points of the rectangle. HOWEVER, I'm displaying several pictures, one at a time, and each picture has a different size, so the 4 coordinate points differ from picture to picture, making that option not easily workable. Does anyone have any ideas? To recap, I want each picture to start at the same point (i.e., near the top of the screen) while having different sizes.  
  
Any help is greatly appreciated.  
  
Thanks,  
Scott
