WriteAlphaPixel

Top  Previous  Next

Syntax

WriteAlphaPixel(x as INT,y as INT,col as UINT,alpha as INT,opt buffer as POINTER)

Description

Sets one pixel on a buffer to the specified color using alpha blending.

Parameters

x, y - Coordinates of pixel to set.

col - RGB color or color index to set pixel.

alpha - Alpha blending value

buffer - Optional. Can be one of BACKBUFFER (default), FRONTBUFFER or SPRITEBUFFER.

Return value

None

Remarks

The alpha blending value ranges from 0 to 255.

See Also: WritePixel, WritePixelFast

Example usage

WriteAlphaPixel 100,100, RGB(155,0,255), 128