See Also Examples Applies To
Gets alpha, red, green and a blue components from a 32-bit Color (ARGB).
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 management & Color space conversion
Visual Foxpro Sample
How to Get Alpha, Blue, Green and Red color components for a long argb value in vfp:
object = CREATEOBJECT("gdpicturepro5.imaging") &&gdpicture4.imaging for GdPicture light
WITH object as gdpicturepro5.imaging &&gdpicture4.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