Results 1 to 3 of 3

Thread: Pos. print Help

                  
   
  1. #1
    DCEmu Coder PSPKOR's Avatar
    Join Date
    Apr 2006
    Location
    England
    Age
    36
    Posts
    184
    Rep Power
    70

    Default Pos. print Help

    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.
    LEARN, MASTER and ACHIEVE!!
    'Bruce Lee'

  2. #2
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    PositionToBlitX = PositionToBlitX - (ImageSource:width() / 2 )
    PositionToBlitY = PositionToBlitY - (ImageSource:height() / 2 )

    screen:blit(PositionToBlitX, PositionToBlitY, ImageSource)

  3. #3
    DCEmu Coder PSPKOR's Avatar
    Join Date
    Apr 2006
    Location
    England
    Age
    36
    Posts
    184
    Rep Power
    70

    Default

    Cheers yaustar, wasn't sure many people came into this section anymore. Thanks
    LEARN, MASTER and ACHIEVE!!
    'Bruce Lee'

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •