forked from QB64-Phoenix-Edition/QB64pe
-
Notifications
You must be signed in to change notification settings - Fork 0
_GREEN
Samuel Gomes edited this page Nov 8, 2022
·
1 revision
The _GREEN function returns the palette index or the green component intensity of a 32-bit image color.
greenIntensity& = _GREEN(rgbaColorIndex&[, imageHandle&])
- rgbaColorIndex& is the RGBA color value or palette index of the color to retrieve the green component intensity from.
- The LONG intensity value returned ranges from 0 (no intensity, not present) to 255 (full intensity).
- If imageHandle& specifies a 32-bit color image, rgbaColorIndex& is interpreted as a 32-bit RGBA color value.
- If imageHandle& specifies an image that uses a palette, rgbaColorIndex& is interpreted as a palette index.
- If imageHandle& is not specified, it is assumed to be the current write page (See _DEST).
- If imageHandle& is an invalid handle, an ERROR Codes error will occur.
- If rgbaColorIndex& is outside the range of valid indexes for a given image mode, an ERROR Codes error occurs.
- Uses index parameters passed by the _RGB, _RGBA, _RGB32 or _RGBA32 functions.
- An image handle is optional.
- See example in POINT.