Silverfrost Logo About Us | Contact Us
 

nARGB@

Platform

Win32, x64

Purpose

To pack 8-bit colour values plus opacity into a 32-bit integer.

Syntax

INTEGER FUNCTION nARGB@(ALPHA,RED,GREEN,BLUE)
INTEGER ALPHA, RED, GREEN, BLUE

Description

'ALPHA' is the opacity and RED,GREEN,BLUE are the colour intensities. All values are assumed to be in the range 0-255 inclusive. This function returns the RGB@ value and has the side effect of storing the opacity for the next call to a drawing routine. This temporary value is reset to the default opacity after its first use and this value over-rides the default opacity for the current drawing surface. When nARGB@ is called as an argument of a graphics routine then the stored opacity will relate to the current call.

Return value

Returns the packed RGB values.

Notes

Introduced with FTN95 7.00.

See also

Using GDI+, SET_OPACITY, USE_GDIPLUS

 

 

Copyright © 1999-2018 Silverfrost Limited