Skip to main content

MakeRGB

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long MakeRGB(long Red, long Green, long Blue);

Description

Calculates the color value from the three primary color components. The value is interpreted as 4 bytes and the color results from which value is contained in which byte: [0] = ignored, [1] = Red, [2] = Green, [3] = Blue See also availability for panel controls

Parameters

  • Red: Red color component (0 - 255)
  • Green: Green color component (0 - 255)
  • Blue: Blue color component (0 - 255)

Return Values

  • Color value (type long)

Example

MakeRGB(255, 128, 0); // orange color
MakeARGB