Sub-pixel positioning with php

121 Views Asked by At

I'm writing a graphic app in PHP. I'm using the GD function imagecopy() to combine two images, one smaller than the other. I want to position the smaller image on top of the bigger image in a float point position. Like this:

imagecopy($bg,$front,30.7,15.2,0,0,100,100);

The function receives Integers, so my coordinates are automatically being rounded up or down. This is important to me as I'm creating a delicate animation and the rounding of the float values messes it up. Is there a way to draw the image in it's float point position?

Thank you.

0

There are 0 best solutions below