ColorGetARGBFromARGBValuel Method

See Also     Examples     Applies To

Here for C++, vfp... compatibility. Same method 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 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






© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.