... estamos haciendo pruebas
con ella.
* Nuevo: Nueva función nRGB2Array( nRGBColor ). Devuelve una matriz con los valores RGB { nRed, nGreen, nBlue }.
* Nuevo: Nuevo método Image( [nType], [aCropRect] ) --> pImage (puntero de imagen gdi+) en la clase TWindow.
nType (default 1 ): Imagen del ...
Search found 42 matches: nblue
Searched query: nblue
- Thu Aug 08, 2024 11:50 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN July/Julio 2024 (FWH 24.07)
- Replies: 8
- Views: 8264
- Mon Aug 05, 2024 4:14 pm
- Forum: WhatsNew / Novedades
- Topic: New FTDN July/Julio 2024 (FWH 24.07)
- Replies: 8
- Views: 8264
New FTDN July/Julio 2024 (FWH 24.07)
... seems ok
thughwe re still doing tests using it.
* New: function nRGB2Array( nRGBColor ) return an array with the RGB values { nRed, nGreen, nBlue }
* New: TWindow method Image( [nType], [aCropRect] ) --> pImage (gdi+ image pointer)
nType (default 1 ): Image of the window's client area ...
thughwe re still doing tests using it.
* New: function nRGB2Array( nRGBColor ) return an array with the RGB values { nRed, nGreen, nBlue }
* New: TWindow method Image( [nType], [aCropRect] ) --> pImage (gdi+ image pointer)
nType (default 1 ): Image of the window's client area ...
- Sun Jan 28, 2024 5:32 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Creating table with Trichedit
- Replies: 18
- Views: 4045
Re: Creating table with Trichedit
... oRTF TEXT 'OOO «Text in aligned left»';
FONTNUMBER 1 ;
APPEARANCE BOLD_OFF+ITALIC_OFF+CAPS_OFF;
FONTSIZE 12 ;
FONTCOLOR CLR_WHITE,CLR_NBLUE ;
ALIGN LEFT ;
SPACEBEFORE .12 ;
SETDEFAULT
// Use this to begin a new table
DEFINE NEWTABLE oRTF ; // Specify the RTF object
ALIGN LEFT ...
FONTNUMBER 1 ;
APPEARANCE BOLD_OFF+ITALIC_OFF+CAPS_OFF;
FONTSIZE 12 ;
FONTCOLOR CLR_WHITE,CLR_NBLUE ;
ALIGN LEFT ;
SPACEBEFORE .12 ;
SETDEFAULT
// Use this to begin a new table
DEFINE NEWTABLE oRTF ; // Specify the RTF object
ALIGN LEFT ...
- Sat Jan 27, 2024 9:36 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Creating table with Trichedit
- Replies: 18
- Views: 4045
Re: Creating table with Trichedit
... oRTF TEXT 'OOO «Text in aligned left»';
FONTNUMBER 1 ;
APPEARANCE BOLD_OFF+ITALIC_OFF+CAPS_OFF;
FONTSIZE 12 ;
FONTCOLOR CLR_WHITE,CLR_NBLUE ;
ALIGN LEFT ;
SPACEBEFORE .12 ;
SETDEFAULT
// Use this to begin a new table
DEFINE NEWTABLE oRTF ; // Specify the RTF object
ALIGN LEFT ...
FONTNUMBER 1 ;
APPEARANCE BOLD_OFF+ITALIC_OFF+CAPS_OFF;
FONTSIZE 12 ;
FONTCOLOR CLR_WHITE,CLR_NBLUE ;
ALIGN LEFT ;
SPACEBEFORE .12 ;
SETDEFAULT
// Use this to begin a new table
DEFINE NEWTABLE oRTF ; // Specify the RTF object
ALIGN LEFT ...
- Sat Jan 27, 2024 9:08 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Creating table with Trichedit
- Replies: 18
- Views: 4045
Re: Creating table with Trichedit
... oRTF TEXT 'OOO «Text in aligned left»';
FONTNUMBER 1 ;
APPEARANCE BOLD_OFF+ITALIC_OFF+CAPS_OFF;
FONTSIZE 12 ;
FONTCOLOR CLR_WHITE,CLR_NBLUE ;
ALIGN LEFT ;
SPACEBEFORE .12 ;
SETDEFAULT
// Use this to begin a new table
DEFINE NEWTABLE oRTF ; // Specify the RTF object
ALIGN LEFT ...
FONTNUMBER 1 ;
APPEARANCE BOLD_OFF+ITALIC_OFF+CAPS_OFF;
FONTSIZE 12 ;
FONTCOLOR CLR_WHITE,CLR_NBLUE ;
ALIGN LEFT ;
SPACEBEFORE .12 ;
SETDEFAULT
// Use this to begin a new table
DEFINE NEWTABLE oRTF ; // Specify the RTF object
ALIGN LEFT ...
- Mon Jun 14, 2021 7:09 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Colors (SOLVED)
- Replies: 10
- Views: 1855
Re: Colors
... hb_bitAnd( 6736896, 0x FF 0000 ) / 0xFF00 )
? hb_NumToHex( hb_bitAnd( 6736896, 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 ) )
? hb_NumToHex( hb_bitAnd( 6736896, 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 ) )
- 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: 1149
Re: Evaluate whether a color value is dark or light
... 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. ...
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. ...
- Wed Oct 23, 2019 12:49 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: New FWH 19.09
- Replies: 36
- Views: 7392
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
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

- Thu Oct 17, 2019 11:02 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Show an gdi trasparency
- Replies: 5
- Views: 787
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( oImage1 , 1 ...
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( oImage1 , 1 ...
- Mon Sep 30, 2019 1:29 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Any tests drawing text with GDIPLUS ?
- Replies: 7
- Views: 1952
Re: Any tests drawing text with GDIPLUS ?
... DrawTextLFont( 80, 125, "install", oFontLarge, 20 , oBrush1, hDC )
The 1. and 3. one works fine
METHOD NewSolidBrush( nTrans, nRed, nGreen, nBlue )
METHOD NewTextureBrush( oGdiBmp )
( wanted to be used for text )
METHOD NewGradientBrush( nTop, nLeft, nWidth, nHeight, nType,;
nTrans1 ...
The 1. and 3. one works fine
METHOD NewSolidBrush( nTrans, nRed, nGreen, nBlue )
METHOD NewTextureBrush( oGdiBmp )
( wanted to be used for text )
METHOD NewGradientBrush( nTop, nLeft, nWidth, nHeight, nType,;
nTrans1 ...
- Fri Dec 30, 2016 8:20 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Calcular color con brillo
- Replies: 4
- Views: 1469
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 }
Usage:
RGBTOHSL( nRGBColor )
or
RGBTOHSL( nRed, nGreen, nBlue )
or
RGBTOHSL( { nRed, nGreen, nBlue )
------> { nHue, nSatuation, nLuminence }
HSLTORGB( { h, s, l } ) --> { nRed, nGreen, nBlue, nRGB }
- Mon May 16, 2016 10:45 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: BTNBMP 16.04 : Translucent buttons, Textured buttons, HGrad
- Replies: 1
- Views: 719
BTNBMP 16.04 : Translucent buttons, Textured buttons, HGrad
... BBGGRR"
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 an array ...
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 an array ...
- Tue Mar 01, 2016 9:15 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN February 2016 (FWH 16.02)
- Replies: 2
- Views: 1794
New FTDN February 2016 (FWH 16.02)
... 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 ...
- 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 ...
- Tue Feb 09, 2016 9:49 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: GBmp GDIPLUS
- Replies: 4
- Views: 851
GBmp GDIPLUS
... Gbmp class to load a PNG FILE
and I use drawimage to show the image
oGraphics:DrawImage( aImages[i] , 1, 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 ?
and I use drawimage to show the image
oGraphics:DrawImage( aImages[i] , 1, 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 ?
- Fri Jan 29, 2016 8:48 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN January/Enero 2016 (FWH 16.01)
- Replies: 3
- Views: 2936
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:
1. nARGB ...
- 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:
1. nARGB ...