Search found 14 matches: nrgbgreen

Searched query: nrgbgreen

by ukoenig
Mon Feb 15, 2021 9:13 am
Forum: FiveWin for Harbour/xHarbour
Topic: Evaluate whether a color value is dark or light
Replies: 9
Views: 1140

Re: Evaluate whether a color value is dark or light

... is nearly the same
some colors with only a difference of 1 colorstep

From calculation

nRGBColor := 0
nRed := nRGBRed( nValRGB0 )
nGreen := nRGBGreen( nValRGB0 )
nBlue := nRGBBlue( nValRGB0 )

IF 0.3*nRed + 0.6*nGreen + 0.1*nBlue < 128
nRGBColor := 16777215 // white
ENDIF

http&#58;//www&#46 ...
by ukoenig
Wed Oct 23, 2019 12:49 pm
Forum: FiveWin for Harbour/xHarbour
Topic: New FWH 19.09
Replies: 36
Views: 7341

Re: New FWH 19.09

Günther,

the pen-calculation-factor ( GdiPlus )

//New( nTrans, nRed, nGreen, nBlue, nSize, lRound, lAlign )
//nRed := nRGBRed( nColor )
//nGreen := nRGBGreen( nColor )
//nBlue := nRGBBlue( nColor )

oPen := Pen():New( 255, 0, 0, 255 , 8, .T.) will show a 3 mm pen
1 mm = 2.834645669

regards
Uwe :D
by ukoenig
Tue Apr 16, 2019 3:36 pm
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Border on cells
Replies: 27
Views: 5173

Re: XBROWSE Border on cells

... is selected it should be defined once on top of Your prg like

LOCAL lDel := .F. // status
LOCAL oPen := Pen():New( 255, nRGBRed( 16777215 ), ;
nRGBGreen( 16777215 ), ;
nRGBBlue( 16777215 ), 5 )

don*t forget

ACTIVATE DIALOG oDlg2 CENTER
RELEASE FONT oFont, oFont1
oPen:Destroy()

RETURN( NIL ...
by ricardog
Thu Aug 31, 2017 2:56 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 8577

Re: Ayuda DLL

... VALBLANK
Error: Unresolved external '_HB_FUN_NRGBRED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|VALBLANK
Error: Unresolved external '_HB_FUN_NRGBGREEN' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|VALBLANK
Error: Unresolved external '_HB_FUN_NRGBBLUE' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB ...
by ukoenig
Sat Aug 01, 2015 7:17 am
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a appl. on top of the dlg on resize ? (solved)
Replies: 5
Views: 2887

Re: How to keep a appl. on top of the dialog on resize ?

... TITLE "COLOR-PICKER 1.1"
..
..
DEFINE TIMER oTimer OF oWnd ;
INTERVAL 70 ACTION ( nRGB := GetColor(), ;
nRed := nRGBRed( nRGB ), ;
nGreen := nRGBGreen( nRGB ), ;
nBlue := nRGBBlue( nRGB ), ;
cRGB := "nRGB( " + ALLTRIM(STR(nRed)) + ", " + ;
ALLTRIM(STR(nGreen)) + ", " + ;
ALLTRIM(STR(nBlue ...
by ukoenig
Mon Aug 04, 2014 6:42 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Mixing colors. Mr. Ukoenig
Replies: 4
Views: 852

Re: Mixing colors. Mr. Ukoenig

... You can use the function like :

FUNCTION GET_BRIGHT( nColor )
LOCAL nRGBProz := 0, nBlue, nGreen, nRed

nRed := nRGBRed( nColor )
nGreen := nRGBGreen( nColor )
nBlue := nRGBBlue( nColor )

nBrightness := INT( 0.299 * nRed ;
+ 0.587 * nGreen ;
+ 0.114 * nBlue )

// MsgAlert( nColor, "Color ...
by Francisco Horta
Thu Mar 29, 2012 4:54 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Guardar color de texto en dbf
Replies: 7
Views: 1173

Re: Guardar color de texto en dbf

Jairo
nColor:=ChooseColor()
nRedText:=nRGBRed(nColor)
nGreenText:=nRGBGreen(nColor)
nBlueText:=nRGBBlue(nColor)

remplazas en tu dbf
afile->Rojo := nRedText
afile->Verde := nGreenText
afile->Azul := nBlueText

y cuando quieras verlo
REDEFINE SAY PROMPT "color de mi texto" ID 103 OF oDlg ;
COLOR nRGB ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 6090

Re: Se necesita ayuda en el wiki !

... nIcons()
nLoByte()
nLoWord()
nMakeLong()
nMciOpen()
nMciPlay()
nMciWindow()
nMidiDevices()
nMsgBox()
nNot()
nOr()
nRandom()
nRGB()
nRGBBlue()
nRGBGreen()
nRGBRed()
nSerialA()
nSerialHD()
nStrCrc()
nStrHash()
nTcwRow()
NtxPos()
nTxtLines()
nWindows()
nWndChrHeight()
nWRow()
nWRows()
nXOr ...
by Antonio Linares
Wed Jan 27, 2010 7:15 am
Forum: FiveWin para Harbour/xHarbour
Topic: Como convertir Getsyscolor() a RGB
Replies: 4
Views: 884

Re: Como convertir Getsyscolor() a RGB

Vladimir,

nRed = nRGBRed( nRGBColor )
nGreen = nRGBGreen( nRGBColor )
nBlue = nRGBBlue( nRGBColor )
by fespinoza
Tue Jan 08, 2008 4:12 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con un "Harbour Exception Error"
Replies: 11
Views: 3210

... NombreArDeb(oDlgING,1) MESSAGE "Seleccione nuevo Arbitro"

REDEFINE SAY oSay ID 1422 OF oDlgING COLOR RGB(255,0,0),RGB(nRGBRed(oDlgING:nClrPane),nRGBGreen(oDlgING:nClrPane),nRGBBlue(oDlgING:nClrPane))
REDEFINE COMBOBOX oCom[5] VAR EDC[6] ITEMS EQUIPO ID 1421 OF oDlgING ON CHANGE CambiaBMP(EDC[6 ...
by karinha
Thu Apr 13, 2006 11:44 am
Forum: FiveWin para Harbour/xHarbour
Topic: Diferentes degrados de color en ToolBar y dialogo
Replies: 4
Views: 2287

... lPuro := .F.
endif

if !lPuro // El color no es puro, entonces degradado
nBlue := nRGBBlue( nColor )
nRed := nRGBRed( nColor )
nGreen := nRGBGreen( nColor)

DEFAULT nSaltos := 3
nSteps := ( aRect[ 3 ] - aRect[ 1 ] ) / nSaltos

oWnd:GetDC()

aRect[ 3 ] = 0

for n = 1 to nSteps
aRect[ 3 ...
by manuramos
Mon Feb 20, 2006 7:56 pm
Forum: Utilities / Utilidades
Topic: Nuevo SAY Sensible y Editable
Replies: 12
Views: 7848

... en un fichero de cabecera propio, éstas son:

#xTranslate OSCURO( <nColor>,<nVar> ) => ;
RGB( MAX(0,nRGBRed( <nColor> )-<nVar> ) , ;
MAX(0,nRGBGreen( <nColor> )-<nVar> ) , ;
MAX(0,nRGBBlue( <nColor> )-<nVar> ) )

#xTranslate ACLARO( <nColor>,<nVar> ) => ;
RGB( MIN(255,nRGBRed( <nColor ...
by manuramos
Sat Feb 04, 2006 9:06 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Gama de colores para todos
Replies: 0
Views: 650

Gama de colores para todos

... Por Ejemplo ACLORO(CLR_BLUE,64) probadlas.

#xTranslate OSCURO( <nColor>,<nVar> ) => ;
RGB( MAX(0,nRGBRed( <nColor> )-<nVar> ) , ;
MAX(0,nRGBGreen( <nColor> )-<nVar> ) , ;
MAX(0,nRGBBlue( <nColor> )-<nVar> ) )

#xTranslate ACLARO( <nColor>,<nVar> ) => ;
RGB( MIN(255,nRGBRed( <nColor ...
by manuramos
Sat Feb 04, 2006 9:05 pm
Forum: FiveWin para CA-Clipper
Topic: Gama de colores para todos
Replies: 4
Views: 1627

Gama de colores para todos

... Por Ejemplo ACLORO(CLR_BLUE,64) probadlas.

#xTranslate OSCURO( <nColor>,<nVar> ) => ;
RGB( MAX(0,nRGBRed( <nColor> )-<nVar> ) , ;
MAX(0,nRGBGreen( <nColor> )-<nVar> ) , ;
MAX(0,nRGBBlue( <nColor> )-<nVar> ) )

#xTranslate ACLARO( <nColor>,<nVar> ) => ;
RGB( MIN(255,nRGBRed( <nColor ...