|
ImageMaskColour | |
ImageMaskColour ImageNumber, TransparentColour | |
Parameters: ImageNumber = The Index of the image that you wish to set the tranparent colour of TransparentColour = The RGB value of this images transparent coloure |
|
Returns: NONE | |
ImageMaskColour allows the user to select an RGB colour to be treated as the transparent (see through) part of an image. Images can be drawn (via DrawImage,DrawRotatedImage, Sprites etc) either as solid or transparent. When drawing images in solid mode, every pixel within the image is drawn. However, when transparent mode is selected, only pixels that do not match the images Mask Colour are drawn. FACTS: * When an image it created/loaded the ImageMaskColour will default to black. RGB(0,0,0) * The PlayBASIC sprite engine includes special rendering modes for images that use a black mask colour (ARGB(0,0,0,0)) Mini Tutorial:
|
Related Info: | DrawAlphaImage | DrawImage | DrawRotatedImage | DrawSprite | GetImageMaskColour : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |