Skip to main content

Speos Labs Automation 2024 R2

GetColor

Last update: 17.07.2025

Description

Returns an array of 3 VARIANT of the colorimetric coordinates at the given position.

Syntax

object.GetColor(double dXPos, double dYPos, short nColorSystem) As Variant

  • object: Virtual Photometric Lab or Virtual Human Vision Lab object

  • dX: horizontal coordinate

  • dY: vertical coordinate

  • nColorSystem: colorimetric system

    0: COLOR_SYSTEM_XYZ

    1: COLOR_SYSTEM_xyY

    2: COLOR_SYSTEM_uvY_CIE1960

    3: COLOR_SYSTEM_uvY_CIE1976

    4: COLOR_SYSTEM_Luv

    5: COLOR_SYSTEM_Lab

    6: COLOR_SYSTEM_LCh

    For 4, 5 and 6, the illuminant defined in the Virtual Photometric Lab is taken into account.

Connect with Ansys