Search found 22 matches: hbmpold

Return to advanced search

Re: problema con DrawBitmap() usando tCodeBars

... cnType ) ::SetCode( cCode ) ::SetFlags( nFlags ) return Self //--------------------------------------// METHOD Build() CLASS TCodeBars local hBmpOld local hDCDesk := GetDC( GetDesktopWindow() ) local hDCMem := CreateCompatibleDC( hDCDesk ) local hBrush := CreateSolidBrush( 0 ) local hBack ...
by rterraz
Mon Mar 15, 2021 12:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con DrawBitmap() usando tCodeBars
Replies: 10
Views: 1034

Re: Leer pixeles de un bitmap monocromo

... hDCMem = CreateCompatibleDC( hDC ); HBITMAP hBmp = CreateCompatibleBitmap( hDC, rc->right - rc->left, rc->bottom - rc->top ); HBITMAP hBmpOld = ( HBITMAP ) SelectObject( hDCMem, hBmp ); BitBlt( hDCMem, 0, 0, rc->right, rc->bottom, hDC, 0, 0, SRCCOPY ); SelectObject( hDCMem, hBmpOld ...
by Antonio Linares
Fri Jul 24, 2015 9:45 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 4225

Re: Drawing on a TImage and save (revamped) :-)

... LOCAL nHeight := oImg:nHeight() LOCAL hMemDC := CREATECOMPATIBLEDC( hDC ) LOCAL hMemBmp := CREATECOMPATIBLEBITMAP( hDC, nWidth, nHeight ) LOCAL hBmpOld := SELECTOBJECT( hMemDC, hMemBmp ) LOCAL hBitmap := oImg:hBitmap LOCAL hPalette := oImg:hPalette PALBMPDRAW( hMemDC, 0, 0, hBitmap, hPalette, ...
by ukoenig
Sun Apr 06, 2014 12:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8383

Re: "Snap" for Clipper

... HBITMAP                WINDOW.PRG     1511  1517  2402  2970 HBMP                    WINDOW.PRG     2013  2014  2018  2954  2963  2964  2970  2971 HBMPOLD                WINDOW.PRG     2954  2964  2973 HBRUSH                  WINDOW.PRG      948   951  2946  2971 HCTLFOCUS              WINDOW.PRG ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6699

Leak on TRibbon?

Antonio, should not the hBmp deleted unstead hBmpOld ??? Function from tRibbon: function GradientBmp( oWnd, nWidth, nHeight, aColors )   local hDC, hBmp, hBmpOld   local aRect := GetClientRect( oWnd:hWnd )   DEFAULT nHeight := aRect[ ...
by byte-one
Fri Jun 14, 2013 8:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Leak on TRibbon?
Replies: 1
Views: 408

Re: BackGround Painting

... }, { nMove, nColor2, nColor1 } } hDC = CreateCompatibleDC( oWnd:GetDC() ) hBmp = CreateCompatibleBitMap( oWnd:hDC, oWnd:nWidth, oWnd:nHeight ) hBmpOld = SelectObject( hDC, hBmp ) GradientFill( hDC, 0, 0, oWnd:nHeight, oWnd:nWidth, aGrad, lDirect ) // .T. = Vertical DeleteObject( oWnd:oBrush:hBrush ...
by ukoenig
Tue Feb 26, 2013 11:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BackGround Painting (SOLVED)
Replies: 14
Views: 4801

Problemas al crear la libreria TWBROWSE

... ; WORD wCol ; BITMAP bm; LONG lBkColorBMP, lBkColor = GetBkColor( hDC ), lBkColorOld; BOOL bFlag = FALSE ; RECT rRect ; HDC hDC2 ; HBITMAP hBmp2, hBmpOld ; if ( (nStyle == 0 || nStyle == 3 || nStyle == 5 || nStyle == 6 || nStyle == 9 || nStyle == 10) && bSelect ) { rct->bottom-- ; bFlag ...
by ander7319
Fri Jan 04, 2013 9:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas al crear la libreria TWBROWSE
Replies: 6
Views: 2855

Re: PalBmpDraw transparent on main window with gradient

... for transparent painting like ? hDC = CreateCompatibleDC( oDlg:GetDC() ) hBmp = CreateCompatibleBitMap( oDlg:hDC, 378, 506 ) // Width, Height hBmpOld = SelectObject( hDC, hBmp ) GradientFill( hDC, 0, 0, 506, 378, aGrad, .T. ) // Height, Width DeleteObject( oDlg:oBrush:hBrush ) oBrush := TBrush():New( ...
by ukoenig
Tue Mar 06, 2012 9:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: PalBmpDraw transparent on main window with gradient
Replies: 18
Views: 8084

Re: TestTitl.prg Sample MDI

... 16443068 } } hDC = CreateCompatibleDC( oToolbar:GetDC() ) hBmp = CreateCompatibleBitMap( oToolbar:hDC, oToolbar:nWidth, oToolbar:nHeight ) hBmpOld = SelectObject( hDC, hBmp ) GradientFill( hDC, 0, 0, oToolbar:nHeight, oToolbar:nWidth, aGrad, .T. ) oTBrush := TBrush():New( ,,,, hBmp ) oTBrush:Cargo ...
by ukoenig
Mon Feb 27, 2012 7:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TestTitl.prg Sample MDI
Replies: 20
Views: 11746

Re: Checkbox transparent win 7 not win xp

... 10899511, 16443068 }, { 0.5, 16443068, 10899511 } } hDC = CreateCompatibleDC( oDlg1:GetDC() ) hBmp = CreateCompatibleBitMap( oDlg1:hDC, 200, 600 ) hBmpOld = SelectObject( hDC, hBmp ) GradientFill( hDC, 0, 0, 600, 200, aGrad, .T. ) DeleteObject( oDlg1:oBrush:hBrush ) oBrush := TBrush():New( ,,,, ...
by ukoenig
Mon Nov 21, 2011 9:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Checkbox transparent win 7 not win xp
Replies: 10
Views: 3296

btnbump.prg

On some places a "hBmpOld" is produced, but not released!?
by byte-one
Mon Oct 24, 2011 10:09 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: btnbump.prg
Replies: 0
Views: 620

Re: Extension to TFolderEx

... Gradient ( vertical ) : http://www.pflegeplus.com/pictures/SFBrush3.jpg hBmp = CreateCompatibleBitMap( oDlg:hDC, PixelX, PixelY ) hBmpOld = SelectObject( hDC, hBmp ) // - 30 => - Tabheight-adjustment needed !!! GradientFill( hDC, 0, 0, PixelY - 30, PixelX, aGrad, lDirect ) DeleteObject( ...
by ukoenig
Mon Oct 17, 2011 2:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Extension to TFolderEx
Replies: 1
Views: 659

Re: BtnBmp

... ACTION oDlg:end() of oDlg pixel SIZE 26,26 obmp:lTRANSPARENT = .T. RETURN (NIL) STATIC FUNCTION GradBrush( oDlgkk,color1,color2) local hDC, hBmp, hBmpOld,obrush hDC = CreateCompatibleDC( oDlgkK:GetDC() ) hBmp = CreateCompatibleBitMap( oDlgkK:hDC, oDlgkK:nWidth, oDlgkK:nHeight ) hBmpOld = SelectObject( ...
by stefano
Sun Sep 04, 2011 4:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: BtnBmp (SOLVED)
Replies: 11
Views: 2571

Color Dialog

... ON INIT GradBrush( oDlg2,nRGB( 255, 25, 25 ),nRGB(255, 69, 0)) return nil STATIC FUNCTION GradBrush( oDlgkk,color1,color2) local hDC, hBmp, hBmpOld,obrush hDC = CreateCompatibleDC( oDlgkK:GetDC() ) hBmp = CreateCompatibleBitMap( oDlgkK:hDC, oDlgkK:nWidth, oDlgkK:nHeight ) hBmpOld = SelectObject( ...
by stefano
Tue Aug 30, 2011 8:36 pm
 
Forum: All products support
Topic: Color Dialog
Replies: 3
Views: 1289

Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01

... ; WORD wCol ; BITMAP bm; LONG lBkColorBMP, lBkColor = GetBkColor( hDC ), lBkColorOld; BOOL bFlag = FALSE ; RECT rRect ; HDC hDC2 ; HBITMAP hBmp2, hBmpOld ; if ( (nStyle == 0 || nStyle == 3 || nStyle == 5 || nStyle == 6 || nStyle == 9 || nStyle == 10) && bSelect ) { rct->bottom-- ; bFlag ...
by alex_cyr
Sat Jul 09, 2011 2:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01
Replies: 7
Views: 2631
Next

Return to advanced search