On Thu, 2009-02-26 at 01:51 +0000, Kyle King wrote:
> This should horizontally and vertically center an image in any slot:
> 
>       i = image 'your-image.png', :margin_top => '50%', :margin_left => '50%'
>       iw, ih = imagesize 'your_image.png'
>       i.move i.left-(iw/2.0).round, i.top-(ih/2.0).round

Thank you!

Andre

Reply via email to