fg_findrgb() (legacy function)

Win32 DirectX Fastgraph/Light

Prototype

int fg_findrgb (int red, int green, int blue);

Function fg_findrgb (ByVal red As Long, ByVal green As Long, ByVal blue As Long) As Long

function fg_findrgb (red, green, blue : integer) : integer;

Description

The fg_findrgb() legacy function finds the color closest to the specified color in the active logical palette.

Parameters

red, green, and blue respectively define the red, green, and blue components of the target color.

Return value

The logical palette index of the closest matching color, between 0 and 255.

Restrictions

Before calling fg_findrgb(), a logical palette must be defined and realized.

Replaced by

fg_maprgb()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.