PDA

View Full Version : Pos. print Help



PSPKOR
October 12th, 2006, 15:04
I've looked around for a bit now but cant find out how to print a picture from the centre of the picture rather than printing it from the top left hand corner of the picture.

If someone could tell me how or where to find out it would be a big help.

Cheers.

yaustar
October 12th, 2006, 18:29
PositionToBlitX = PositionToBlitX - (ImageSource:width() / 2 )
PositionToBlitY = PositionToBlitY - (ImageSource:height() / 2 )

screen:blit(PositionToBlitX, PositionToBlitY, ImageSource)

PSPKOR
October 14th, 2006, 11:31
Cheers yaustar, wasn't sure many people came into this section anymore. Thanks