Search found 24 matches: ngreen

Return to advanced search

Re: Colors

... 0x00 FF 00 ) / 0x00FF ) ? hb_NumToHex( hb_bitAnd( 6736896, 0x0000 FF ) ) In FWH\include\colors.ch there is a: #translate RGB( <nRed>, <nGreen>, <nBlue> ) => ; ( <nRed> + ( <nGreen> * 256 ) + ( <nBlue> * 65536 ) )
by Antonio Linares
Mon Jun 14, 2021 7:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Colors (SOLVED)
Replies: 10
Views: 1377

Re: Evaluate whether a color value is dark or light

... 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 // white ENDIF http://www.service-fivewin.de/IMAGES/Contrast1.jpg ...
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: 837

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

Show an gdi trasparency

... please type @ 10,072 BITMAP oBmp File "" size 50, 100 pixel // NOBORDER oPen := Pen():New( 255, 0, 0, 255 ) // nTransparency, nRed, nGreen, nBlue oImage1:= GDIBmp():new("sample.png" ) hDC[1]:= oBmp:GetDc() oGraphics[1] := Graphics():New( hDC[1] ) n9:= -73 oGraphics[1]:DrawImage( ...
by Silvio.Falconi
Thu Oct 17, 2019 11:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Show an gdi trasparency
Replies: 5
Views: 693

Re: Any tests drawing text with GDIPLUS ?

... 80, 125, "install", oFontLarge, 20 , oBrush1, hDC ) The 1. and 3. one works fine METHOD NewSolidBrush( nTrans, nRed, nGreen, nBlue ) :D METHOD NewTextureBrush( oGdiBmp ) :( ( wanted to be used for text ) METHOD NewGradientBrush( nTop, nLeft, nWidth, nHeight, nType,; ...
by ukoenig
Mon Sep 30, 2019 1:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Any tests drawing text with GDIPLUS ?
Replies: 7
Views: 1540

Re: Calcular color con brillo

FWH has inbuilt functions RGBTOHSL() and HSLTORGB()

Usage:
RGBTOHSL( nRGBColor )
or
RGBTOHSL( nRed, nGreen, nBlue )
or
RGBTOHSL( { nRed, nGreen, nBlue )

------> { nHue, nSatuation, nLuminence }

HSLTORGB( { h, s, l } ) --> { nRed, nGreen, nBlue, nRGB }
by nageswaragunupudi
Fri Dec 30, 2016 8:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Calcular color con brillo
Replies: 4
Views: 1325

BTNBMP 16.04 : Translucent buttons, Textured buttons, HGrad

... ARGB is a 32 bit number. Expressed in Hex: "AARRGGBB" For quick usage FWH provides nARGB() function Usage: nARGB( nAlpha, nRed, nGreen, nBlue ) or nARGB( nAlpha, nRGBColor ) Extensions to Gradient Array: A valid Gradient array is a multi-dimensional Array, each element being ...
by nageswaragunupudi
Mon May 16, 2016 10:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BTNBMP 16.04 : Translucent buttons, Textured buttons, HGrad
Replies: 1
Views: 655

New FTDN February 2016 (FWH 16.02)

... Alvarez ) - METHOD GetRedPix( nX, nY ) - METHOD GetGreenPix( nX, nY ) - METHOD GetBluePix( nX, nY ) - METHOD ConverColortoColor( nAlphaI, nRedI, nGreenI, nBlueI, nAlphaF, nRedF, nGreenF, nBlueF ) - METHOD GetAlphaPix( nX, nY ) INLINE GdiPlusImagePixGetAlpha ( ::hbmp, nX, nY ) - METHOD SetRecolorColorMatrix( ...
by Antonio Linares
Tue Mar 01, 2016 9:15 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN February 2016 (FWH 16.02)
Replies: 2
Views: 1307

GBmp GDIPLUS

... aPos[i] ) the background of the image is white how I can make to make it transparent ? oPen := Pen():New( 255, 0, 0, 255 ) // nTransparency, nRed, nGreen, nBlue where I must insert oPen ?
by Silvio.Falconi
Tue Feb 09, 2016 9:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GBmp GDIPLUS
Replies: 4
Views: 747

Re: New FTDN January/Enero 2016 (FWH 16.01)

... variable. Now it is ok - New: Implementation clausule NOBORDER in class TOutlook2003 and TOutlook2010 * New translate ARGB( nAlpha, nRed, nGreen, nBlue ) --> ARGB color constant Note: RGB format 0x00BBGGRR ARGB format 0xAARRGGBB * New function nARGB(...) --> nARGB constant. Syntax: ...
by Antonio Linares
Fri Jan 29, 2016 8:48 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2016 (FWH 16.01)
Replies: 3
Views: 2146

New FTDN January/Enero 2016 (FWH 16.01)

... variable. Now it is ok - New: Implementation clausule NOBORDER in class TOutlook2003 and TOutlook2010 * New translate ARGB( nAlpha, nRed, nGreen, nBlue ) --> ARGB color constant Note: RGB format 0x00BBGGRR ARGB format 0xAARRGGBB * New function nARGB(...) --> nARGB constant. Syntax: ...
by Antonio Linares
Sun Jan 24, 2016 8:42 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2016 (FWH 16.01)
Replies: 3
Views: 2146

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

... 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)) + ", " + ; ALLTRIM(STR(nGreen)) ...
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: 2423

New FTDN November 2014 (FWH 14.11)

... rect + new method for Class Pen: SetColor: allows to set a new color for the pen without having to build a new one Parameters: Transparency, nRed, nGreen, nBlue + New Class Path : allows to draw several different lines of a path to later on draw them on the screen Methods: New: Creates a new Path ...
by Antonio Linares
Sun Nov 30, 2014 7:48 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN November 2014 (FWH 14.11)
Replies: 5
Views: 2570

Re: AYUDA CON BOTON

... nRGBColorFondo ) en donde cada uno de esos dos valores ha de ser un color en notación RGB. Puedes usar la función de FWH nRGB( nRed, nGreen, nBlue ) Los colores más estandard estan definidos en el fichero de cabecera colors.ch (CLR_RED, CLR_BLUE, etc...) FWH tambien permite el uso ...
by Antonio Linares
Tue Sep 09, 2014 7:08 am
 
Forum: FiveWin para CA-Clipper
Topic: AYUDA CON BOTON
Replies: 2
Views: 1242

Re: Mixing colors. Mr. Ukoenig

... colors will return 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 ...
by ukoenig
Mon Aug 04, 2014 6:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mixing colors. Mr. Ukoenig
Replies: 4
Views: 756
Next

Return to advanced search