DrawAlphaImage()

Syntax

DrawAlphaImage(ImageID, x, y [, ConstAlpha])
Description
Draw the specified image at the given x,y position. The image ID can be easily obtained by using the ImageID() function from the image library.

The Image will be alpha-blended onto the drawing background (even if the current drawing mode is not #PB_2DDrawing_AlphaBlend). The optional "ConstAlpha" parameter can be used to adjust the overall transparency of the image. The value can range from 0 (fully transparent) to 255 (fully opaque). Even images that have no alpha channel themselves can be drawn with transparency this way.

This command cannot be used to draw Icons (loaded from .ico files).

Supported OS

All

<- CustomGradient() - 2DDrawing Index - DrawImage() ->