AGK for Pascal
TAgkSprite.SetScale Method

Sets the sprite scale as an absolute multiple of its original size. For example a scale value of 2 would double the sprite's size whilst a value of 1 will return it to its original size.

procedure SetScale(const XScale: Single; const YScale: Single);
const XScale: Single 
the value to scale the sprite in the X direction. 
const YScale: Single 
the value to scale the sprite in the Y direction. 

This function scales from the top left corner so any increase in size will keep the top and left sides stationary whilst the bottom and right sides move. The sprites center of rotation (its current offset point) will scale with the sprite. To scale from the offset point use SetScaleByOffset.

Copyright (c) 2012. All rights reserved.