Difference between revisions of "XYZToRGB"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure XYZToRGB(X, Y, Z: Extended; var R, G, B: Integer); </source> ==Availability== SCAR Divi 3.00 > Current ==Description...")
 
(No difference)

Latest revision as of 19:40, 5 July 2011

Definition

procedure XYZToRGB(X, Y, Z: Extended; var R, G, B: Integer);

Availability

SCAR Divi 3.00 > Current

Description

Converts XYZ values specified by X, Y and Z to RGB color values and returns them in R, G and B. The result can be converted back to XYZ values using RGBToXYZ.

Example

var
  r, g, b: Integer;

begin
  XYZToRGB(75, 50, 20, r, g, b)
  WriteLn(IntToStr(r) + ';' + IntToStr(g) + ';' + IntToStr(b));
end.

Output:

310;129;108

See Also