|
-
Dec 10th, 2004, 12:20 AM
#1
Thread Starter
Hyperactive Member
stretchblt flip
I am trying to make a stretchblt ...thing to be able to flip an image based on a variable
what i have so far is
[code]
StretchBlt Me.hdc, .Left, .Top, .Width, .Height, picSmileyMask.hdc, picSmiley.ScaleWidth * .Hflip, picSmiley.ScaleHeight * .Vflip, picSmileyMask.ScaleWidth * ((-2 * .Hflip) + 1), picSmileyMask.ScaleHeight * ((-2 * .Vflip) + 1), vbSrcPaint
StretchBlt Me.hdc, .Left, .Top, .Width, .Height, picSmiley.hdc, picSmiley.ScaleWidth * .Hflip, picSmiley.ScaleHeight * .Vflip, picSmiley.ScaleWidth * ((-2 * .Hflip) + 1), picSmiley.ScaleHeight * ((-2 * .Vflip) + 1), vbSrcAnd
[code]
the problem is i am using Vflip and Hflip variables with 1 = flip on that axis and 0 being unfliped on tht axis, it wors relativley well but whenever i flip something i get a black line on the side of the image, i checked everything and i dont know why, I desparatly need help because this will enable me to complete my game that i am making. (Yes the game is that important)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|