Results 1 to 3 of 3

Thread: Standing on the edge...

  1. #1
    pjvdg
    Guest

    Wink

    I am currently using DirectX 7 for game programming,
    I just have one little question, how do I put, for example, a bitmap on coordinates -30,-30
    (the bitmap itself is 80x80), so I can see a piece of the bitmap on my screen...

    All positive values seem to work, why can't the negative ones work aswell?

    thx in advance...

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well the co-ordinate system for systems starts with (0, 0) in the top left hand corner of the screen, not dead centre.

    So if you wanted to take just a part of it, just blit only part of it to the destination hDc.

    - jamie
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Sounds like you're using DirectDraw, right?

    You should be able to use the Blt() function to blit to those coordinates, so long as you have attached a clipper to the surface. Otherwise it will get messed up, because you can't blit a picture to just anywhere.
    Harry.

    "From one thing, know ten thousand things."

Posting Permissions

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



Click Here to Expand Forum to Full Width