View Single Post
  #10  
Old 03-12-2007, 04:12 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yes you currently need to use stretchx and stretchy to change the size. To correct the position of the image you need to do then:

PHP Code:
+= (1-zoom*stretchx)/2*getimgwidth(image);
+= (1-zoom*stretchy)/2*getimgheight(image); 
Another way is to use a polygon with an image:
PHP Code:
polygon = {x,yx+mywidth,yx+mywidth,y+myheightx,y+myheight};
image "yourimage.png"
Replace mywidth and myheight with the preferred size. This will only work if you display a full image (not using partx etc.)

The simpliest way would be to use a GuiBitmapCtrl, I am not sure where you want to display it though.
Reply With Quote