.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH GetNearestColor 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBGetNearestColor\fR (GDI32.@) .SH SYNOPSIS COLORREF GetNearestColor ( HDC \fIhdc\fR, COLORREF \fIcolor\fR ) .SH PARAMS \fIhdc\fR \fB[In]\fR Handle of device context. .PP \fIcolor\fR \fB[In]\fR Color to be matched. .PP .SH DESCRIPTION .PP Gets a system \fIcolor\fR to match. .SH RETURNS .PP \fBSuccess:\fR Color from system palette that corresponds to given \fIcolor\fR .PP \fBFailure:\fR \fBCLR_INVALID\fR .SH IMPLEMENTATION .PP Declared in \fB"gdi_private.h"\fR. .PP Implemented in \fB"dlls/gdi32/palette.c"\fR. .PP Debug channel \fB"palette"\fR.