|
BlitImageAlphaAddImage | |
BlitImageAlphaAddImage ThisImage, Xpos, Ypos, BlendImage | |
Parameters: ThisImage = The Index of the image you wish to draw Xpos = The X coordinate to draw this image Ypos = The Y coordinate to draw this image BlendImage = The index of the image to you wish to blend with the primary image |
|
Returns: NONE | |
BlitImageAlphaAddImage is similar to the DrawImage function, except it has post processing. What it does, is it takes two images (of the same size) and uses Alpha Addition to blend them together before drawing them. Each output pixel is created by adding the a blend image pixels with the primary images pixels. Neither image is modified during the process. To create equivalent functionally, you'd need three images. The two images you wish to draw blended and third to store the temporary blended state. So we'd first copy the src image #1 to image #3, then blend src image #2 onto image #3 and finally draw image 3 to it's destination. The combined processing is not just to save you a few lines of code, it's actually a more optimal way of performing this action. FACTS: * BlitImageAlphaAddImage is only intend for drawing FX or AFX formatted image surfaces. * BlitImageAlphaAddImage doesn't support mask & alpha channel transparency. |
|
Example Source: Download This Example
|
Related Info: | BlitImageAlpha50Colour | BlitImageAlphaMultImage | BlitImageAlphaSubImage | BlitImageClear | Box | DrawAlphaImage | DrawImage | InkMode : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |