|
-
Jun 14th, 2010, 04:02 PM
#19
Re: [Vb6] AlphaBlend API function(strange result)
You can speed it up by removing these lines from inside the loop to outside the loop, before the loop starts:
dblAlpha = Opacy / 100
And: cache value of (1 - dblAlpha) and use it in the R, G, B calculations. Maybe: dblAlphaSrc = Opacy/100: dblAlphaDst = 1-dblAlphaSrc
By making that small change you are doing 4 less math calculations per pixel
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
|