Search found 23 matches: hdcmem

Return to advanced search

Re: Gluing images

#define SRCCOPY 13369376 local hDC := oDlg:GetDC() local hDCMem := CreateComtatibleDC( hDC ) local hBitmap := CreateCompatibleBitmap( hDCMem, nWidth, nHeigth ) local hPrev := SelectObject( hDCMem, hBitmap ) local hBmp, hDib now you paint your bitmaps ...
by Antonio Linares
Tue Oct 12, 2021 5:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Gluing images
Replies: 8
Views: 679

Re: problema con DrawBitmap() usando tCodeBars

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

Re: calculates the distance between two towns

... + left if x>-::aMarkers[ix,3] .and. x<w+::aMarkers[ix,3] .and. ; y>-::aMarkers[ix,3] .and. Y<h+::aMarkers[ix,3] Eval(::aMarkers[ix,4],hDCMem,x,y ) endif next
by Otto
Sun Oct 18, 2020 4:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculates the distance between two towns
Replies: 19
Views: 2706

Re: Ribbon Theme

... with this little change in ribbon.prg in Method PaintFld() the last artifact goes away: We change this: case nType == 1 ...          GradientFill( hDCMem, nRow, nCol + 1 , nRow + ::nHeightFld - 1, nCol +  ::aSizes[ nPrompt ], aGradFld )   into this:          GradientFill( hDCMem, nRow, nCol, nRow ...
by Antonio Linares
Tue May 07, 2019 6:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon Theme
Replies: 163
Views: 28224

Re: Ribbon tab color MICROSOFT OFFICE 2016

Exactly we must use a logic new data l2016 and insert before my lines hBrush2 = CreateSolidBrush( ::nClrPaneRB ) FillRect( hDCMem, aRect, hBrush2 ) IF ::l2016 GradientFill( hDCMem, aRect[ 1 ] - 2, aRect[ 2 ] - 3, aRect[ 3 ] + 1, aRect[ 4 ] + 5,; { { 1, ::nClrPaneRB,CLR_WHITE } }, .T. ...
by Silvio.Falconi
Tue May 09, 2017 10:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon tab color MICROSOFT OFFICE 2016
Replies: 38
Views: 9843

Re: Ribbon tab color MICROSOFT OFFICE 2016

... line perhaps can change ( for 2016) the type of Brush from blue to white something as hBrush2 = CreateSolidBrush( ::nClrPaneRB ) //*FillRect( hDCMem, aRect, hBrush2 ) GradientFill( hDCMem, aRect[ 1 ] - 2, aRect[ 2 ] - 3, aRect[ 3 ] + 1, aRect[ 4 ] + 5,; { { 1, CLR_WHITE, CLR_WHITE } }, .T. ...
by Antonio Linares
Mon May 08, 2017 4:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon tab color MICROSOFT OFFICE 2016
Replies: 38
Views: 9843

Re: Ribbon tab color MICROSOFT OFFICE 2016

... line perhaps can change ( for 2016) the type of Brush from blue to white something as hBrush2 = CreateSolidBrush( ::nClrPaneRB ) //*FillRect( hDCMem, aRect, hBrush2 ) GradientFill( hDCMem, aRect[ 1 ] - 2, aRect[ 2 ] - 3, aRect[ 3 ] + 1, aRect[ 4 ] + 5,; { { 1, CLR_WHITE, CLR_WHITE } }, .T. ...
by Silvio.Falconi
Mon May 08, 2017 2:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon tab color MICROSOFT OFFICE 2016
Replies: 38
Views: 9843

Re: Ribbon tab color MICROSOFT OFFICE 2016

Silvio, I have tried this: hBrush2 = CreateSolidBrush( ::nClrPaneRB ) aRect[ 3 ] -= 3 FillRect( hDCMem, aRect, hBrush2 ) aRect[ 3 ] += 3 but then the color of those bottom lines is black > because ::nClrPaneRB give the color to all ribbonbar but the line is down the ...
by Antonio Linares
Mon May 08, 2017 10:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon tab color MICROSOFT OFFICE 2016
Replies: 38
Views: 9843

Re: Ribbon tab color MICROSOFT OFFICE 2016

Antonio, I think we can change these lines ( METHOD Paint() CLASS TRibbonBar ) hBrush2 = CreateSolidBrush( ::nClrPaneRB ) FillRect( hDCMem, aRect, hBrush2 ) because ::nClrPaneRB give the color to all ribbonbar but the line is down the group must be the same color of the back of the tab Or ...
by Silvio.Falconi
Sun May 07, 2017 3:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon tab color MICROSOFT OFFICE 2016
Replies: 38
Views: 9843

Re: Leer pixeles de un bitmap monocromo

... antes había buscado por donde había que cortar seleccionando un hDC y antes de llamar a tu función tenía que restaurarlo poniendo SelectObject( hDCMem, hOldBmp ). Pero bueno, que tu función corta perfectamente un bitmap. Muchas gracias, Joaquín Martínez
by jmartial
Fri Jul 24, 2015 12:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 4159

Re: Leer pixeles de un bitmap monocromo

Antes del BitBlt() prueba a hacer:

SetBkColor( hDCMem, GetPixel( hBitmap, 0, 0 ) );
by Antonio Linares
Fri Jul 24, 2015 10:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 4159

Re: Leer pixeles de un bitmap monocromo

Joaquín, Prueba asi, teniendo seleccionado el bitmap original en hDC: HDC hDCMem = CreateCompatibleDC( hDC ); HBITMAP hBmp = CreateCompatibleBitmap( hDC, rc->right - rc->left, rc->bottom - rc->top ); HBITMAP hBmpOld = ( HBITMAP ) SelectObject( hDCMem, ...
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: 4159

Re: bmpfromico

thanks can I make a big bmp ? change this line ? HBITMAP hBitmap = CreateCompatibleBitmap(HDCMem, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON)); Itried to make HBITMAP hBitmap = CreateCompatibleBitmap(HDCMem, 128, 128); the bitmap is large but the icon is ...
by Silvio.Falconi
Fri Jul 03, 2015 4:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bmpfromico
Replies: 32
Views: 8983

Re: bmpfromico

... we have the icon ... of a file then I saw there is a function Made from Daniel HB_FUNC( BMPFROMICON ) { HICON hIcon = ( HICON ) hb_parnl( 1 ); HDC HDCMem = GetDC( GetDesktopWindow() ); HDC hDC = CreateCompatibleDC( HDCMem ); HBITMAP hBitmap = CreateCompatibleBitmap(HDCMem, GetSystemMetrics(SM_CXICON), ...
by Silvio.Falconi
Fri Jul 03, 2015 3:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bmpfromico
Replies: 32
Views: 8983

Re: Bitmap Compatible

... la vista, fuera de pantalla. Las partes no visibles salen en negro en el bitmap compatible. Lo unico que se le acerca es SendMessage(hWnd,WM_PRINT,hDcMem,PRF....) pues captura las partes invisibes, pero sólo del dialogo, no de sus controles. Voy a seguir por ese camino y si no lo consigo tendré ...
by antolin
Fri Mar 21, 2014 8:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bitmap Compatible
Replies: 12
Views: 1695
Next

Return to advanced search