Search found 14 matches: nrgbred

Return to advanced search

Re: Evaluate whether a color value is dark or light

... ( switchung from white to black ) 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 ...
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: 848

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 ...
by ukoenig
Wed Oct 23, 2019 12:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New FWH 19.09
Replies: 36
Views: 5817

Re: XBROWSE Border on cells

... once a style 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() ...
by ukoenig
Tue Apr 16, 2019 3:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Border on cells
Replies: 27
Views: 4228

Re: Ayuda DLL

Antonio buenos dias, gracias por la ayuda Agrego la VM.LIB (xharbour), y me manda estos errorres :( :( Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex)...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6378

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

... 10, 10 TO 270, 290 PIXEL 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)) + ", " + ; ...
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: 2450

Re: Mixing colors. Mr. Ukoenig

... a value from > 127.5 to 255 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 ) ...
by ukoenig
Mon Aug 04, 2014 6:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mixing colors. Mr. Ukoenig
Replies: 4
Views: 763

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 ...
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: 1005

Re: Se necesita ayuda en el wiki !

... 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() Saludos, Carlos ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5510

Re: Como convertir Getsyscolor() a RGB

Vladimir,

nRed = nRGBRed( nRGBColor )
nGreen = nRGBGreen( nRGBColor )
nBlue = nRGBBlue( nRGBColor )
by Antonio Linares
Wed Jan 27, 2010 7:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como convertir Getsyscolor() a RGB
Replies: 4
Views: 815

... RUTBMP+"ADDREC.BMP" ACTION 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 ...
by fespinoza
Tue Jan 08, 2008 4:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con un "Harbour Exception Error"
Replies: 11
Views: 2679

... 0, nColor ) oWnd:Refresh() else 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 ...
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: 2015

... la propia clase porque las tengo 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> ) ) ...
by manuramos
Mon Feb 20, 2006 7:56 pm
 
Forum: Utilities / Utilidades
Topic: Nuevo SAY Sensible y Editable
Replies: 12
Views: 6614

Gama de colores para todos

... u oscurecer colores especificos. 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> ) ) ...
by manuramos
Sat Feb 04, 2006 9:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Gama de colores para todos
Replies: 0
Views: 599

Gama de colores para todos

... u oscurecer colores especificos. 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> ) ) ...
by manuramos
Sat Feb 04, 2006 9:05 pm
 
Forum: FiveWin para CA-Clipper
Topic: Gama de colores para todos
Replies: 4
Views: 1384

Return to advanced search