You can use BitBlt to make the sprite different sizes
Printable View
You can use BitBlt to make the sprite different sizes
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.
It would probably be better to use StretchBlt .
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?
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.
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.