Results 1 to 6 of 6

Thread: AutoSize Sprites

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    23

    Use.....

    You can use BitBlt to make the sprite different sizes

  2. #2
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    THanks Mman

    Didn't realize bitblt would adjust sprite and size it proportionatly,
    rather than clipping it.

    I use bitblt with my sprite (no images boxes) so will give it a try.

  3. #3
    Red Rush-In
    Guest
    It would probably be better to use StretchBlt .

  4. #4
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Red Rush In

    Thanks - since prev reply came to that conclusion. I handle
    the sprite in memory using CompatibleBitMap and CompatabileDC.

    Do you know if StretchBlt can used to copy the sprite (overlay) onto itself or do I need a separate area in memory?

  5. #5
    Red Rush-In
    Guest
    You can use it the same way you use BitBlt. Are you wanting to load the sprite into memory from a file fisrt? I'm not sure what you are asking.

  6. #6
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Let me rephrase:

    Both BitBlt and StretchBlt take a source and destination.

    Do you know whether the source and destination can be the same location?

    If so, then I can just change the size of my sprite and stretchblt
    it to the extact same location.

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