GREEN: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:_GREEN}} The _GREEN function returns the palette index or the green component intensity of a 32-bit image color. {{PageSyntax}} : {{Parameter|greenIntensity&}} = _GREEN({{Parameter|rgbaColorIndex&}}[, {{Parameter|imageHandle&}}]) {{PageDescription}} * {{Parameter|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 in...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
{{PageExamples}} | {{PageExamples}} | ||
* See example in [[POINT]]. | * See example in [[POINT]]. | ||
Line 26: | Line 26: | ||
* [[_RED]], [[_BLUE]] | * [[_RED]], [[_BLUE]] | ||
* [[_RGB]], [[RGB32]] | * [[_RGB]], [[RGB32]] | ||
* [[_LOADIMAGE]] | * [[_LOADIMAGE]] | ||
{{PageNavigation}} | {{PageNavigation}} |
Latest revision as of 01:45, 23 January 2023
The _GREEN function returns the palette index or the green component intensity of a 32-bit image color.
Syntax
- greenIntensity& = _GREEN(rgbaColorIndex&[, imageHandle&])
Description
- 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 invalid handle error will occur.
- If rgbaColorIndex& is outside the range of valid indexes for a given image mode, an illegal function call error occurs.
- Uses index parameters passed by the _RGB, _RGBA, _RGB32 or _RGBA32 functions.
- An image handle is optional.
Examples
- See example in POINT.
See also