ImageEn, unit hsvbox

THSVBox.GetColorAt

THSVBox.GetColorAt

Declaration

function GetColorAt(x, y: Integer): TColor;

Description

Returns the color at component coordinates x, y. Useful in response to MouseMove event.

Example

procedure TForm1.HSVBox1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
begin
  Label1.Caption := ColorToString( HSVBox1.GetColorAt( X, Y ));
end;

See Also

OnChange
Color