ColorGetARGBFromARGBValuel Method

See Also     Examples     Applies To

Here for C++, vfp... compatibility. Same function as ColorGetARGBFromARGBValue().

Syntax

object.ColorGetARGBFromARGBValuel (nARGBValue, *nAlpha, *nRed, *nGreen, *nBlue)

The ColorGetARGBFromARGBValuel 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. Long.
*nRed Required. Long.
*nGreen Required. Long.
*nBlue Required. Long.

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






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.