|
DrawAlphaImage | |
DrawAlphaImage ImageNumber, Xpos, Ypos, AlphaLevel#, SolidFlag | |
Parameters: ImageNumber = The identifier of this image Xpos = The X coordinate to draw the image at Ypos = The Y coordinate to draw the image at AlphaLevel# = The amount the image should be blended SolidFlag = This flag toggles if the image is rendered solid (no transparent parts) or not |
|
Returns: NONE | |
DrawAlphaImage renders an Alpha Blended image to the current surface. Generally the current output will be the screen, but you can also draw images directly to another image. Alpha Blending works like a cross fade between the foreground (the image) and the back ground.
Note: We highly recommended you read the Images tutorials FACTS: * DrawAlphaImage renders an image to current surface, except when the user either CaptureToScene or CaptureToWorld are activated. In either situation the render request will be added to the scene or world queues. * Alpha Blending in PlayBASIC is done via the computers cpu, rather than a graphics card. So it should be used sparingly. Moreover, it's slower blending to the screen than another image. * Note: The the best performance, your image should be previously prepared as an FX image using PrepareFxImage, LoadFxImage,NewFxImage Mini Tutorial: This small example shows how to create an image, prepare the image for effects and then alpha blend it to the display.
|
Related Info: | DrawImage | DrawRotatedImage | GridImage | Images | LoadFxImage | NewFxImage | PrepareFXImage | TileImage : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |