See Also Examples Applies To
Gets alpha, red, green and a blue components from a long ARGB color value.
Syntax
object.ColorGetARGBFromARGBValue (nARGBValue, *nAlpha, *nRed, *nGreen, *nBlue)
The ColorGetARGBFromARGBValue syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nARGBValue | Required. Long. |
| *nAlpha | Required. Output Byte. Alpha component value [0 - 255]. |
| *nRed | Required. Output Byte. Red component value [0 - 255]. |
| *nGreen | Required. Output Byte. Green component value [0 - 255]. |
| *nBlue | Required. Output Byte. Blue component value [0 - 255]. |
Category
Color System Convertions
Visual Foxpro Sample
How to Get Alpha, Blue, Green and Red color components for a long argb value in vfp:
oImaging = CREATEOBJECT("gdpicturepro4.imaging")
WITH oImaging as gdpicturepro4.imaging && for GdPicture Pro or gdpicture.imaging for GdPicture light
local nAlpha, nBlue, nGreen, nRed
Private nRedColor
nBlue = 0
nGreen = 0
nRed = 0
nAlpha = 0
nRedColor = .ColorGetARGBValueFromARGB(255, 255, 0, 0)
.ColorGetARGBFromARGBValuel(nRedColor, @nAlpha, @nRed, @nGreen, @nBlue)
ENDWITH