Search found 30 matches: deletedc

Return to advanced search

Re: Calculate total pages

...   := oMeta1:hMeta    cUniqueID := cUniqueID()       CursorWait()       DeleteDC( oDevice:hDC)      oDevice := NIL                        ...
by Otto
Fri Nov 24, 2023 6:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5864

Re: Gluing images

... nCol, hBmp ) Finally you save it and clean: DibWrite( cFileName, DibFromBitmap( hBitmap ) ) SelectObject( hDCMem, hPrev ) DeleteObject( hBitmap ) DeleteDC( hDCMem ) oDlg:ReleaseDC()
by Antonio Linares
Tue Oct 12, 2021 5:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Gluing images
Replies: 8
Views: 679

A slider solution to adjust the color brightness ?

... bmp LOCAL hOldBmp := SelectObject( hDC, hBmp ) LOCAL nRGBColor := GetPixel( hDC, nCol, nRow ) SelectObject( hDC, hOldBmp ) DeleteObject( hBmp ) DeleteDC( hDC ) oBmp:ReleaseDC() RETURN nRGBColor best regards Uwe :?:
by ukoenig
Thu Jun 03, 2021 7:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A slider solution to adjust the color brightness ?
Replies: 2
Views: 475

Re: problema con DrawBitmap() usando tCodeBars

... hDCMem, ::cCode, { ::nHeight - 15, 0, ::nHeight, ::nWidth }, 1 ) SelectObject( hDCMem, hBmpOld ) ReleaseDC( GetDesktopWindow(), hDCDesk ) DeleteDC( hDCMem ) DeleteObject( hBrush ) DeleteObject( hBack ) return NIL //--------------------------------------// METHOD SetCode( cCode ) CLASS ...
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: 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: 6330

Re: Bug in HasAlpha()

Please try it using this function: You have to provide it a hDC and later on call DeleteDC() HB_FUNC( ABPAINT ){   #ifdef _WIN64     HDC hDC = ( HDC ) hb_parnll( 1 );   #else     HDC hDC ...
by Antonio Linares
Wed Apr 05, 2017 10:01 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8433

Re: multiple defintions, forst defined here

I changed the folder I was using to start hbmk2 to where the source code sits, and now am getting undefined instead of duplicates This is due, I guess, to not pulling in the correct library(ies). I added trace to see what was going on (thanks for that tip). Does this and the console listing below he...
by lmheimendinger
Mon Dec 05, 2016 11:37 pm
 
Forum: FiveWin for CA-Clipper
Topic: multiple defintions, forst defined here
Replies: 15
Views: 20252

Re: Device context to file

... //SCRCOPY oImg:=GdiBmp():New() oImg:hBmp:=Gdip_FromHBitmap(hBmp,, HasAlpha(hBmp)) oImg:Save("test.bmp") SelectObject(hDc, hOldBmp) DeleteDC(hDc) DeleteObject(hOldBmp) ReleaseDC(0, hDeskTop) It works and I get a screenshot of a window to a bitmap file, but only in black and white. ...
by Natter
Tue Apr 05, 2016 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Device context to file
Replies: 4
Views: 862

Re: Leer pixeles de un bitmap monocromo

... HBITMAP ) SelectObject( hDCMem, hBmp ); BitBlt( hDCMem, 0, 0, rc->right, rc->bottom, hDC, 0, 0, SRCCOPY ); SelectObject( hDCMem, hBmpOld ); DeleteDC( 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: 4224

Re: bmpfromico

... GetSystemMetrics(SM_CYICON)); HBITMAP hOldBitmap = (HBITMAP)SelectObject(hDC, hBitmap); DrawIcon(hDC, 0, 0, hIcon); SelectObject(hDC, hOldBitmap); DeleteDC(hDC); hb_retnl( ( LONG ) hBitmap ); } then I thinked ico := nImage hBmp := BmpFromIcon( ico ) now How I can make to show hBmp into Image control
by Silvio.Falconi
Fri Jul 03, 2015 3:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bmpfromico
Replies: 32
Views: 8985

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

... PALBMPDRAW( hMemDC, 0, 0, hBitmap, hPalette, nWidth, nHeight ) DO_LINES( hMemDC, hPen, nPensize, nPenColor ) SELECTOBJECT( hMemDC, hBmpOld ) DELETEDC( hMemDC ) oImg:hBitmap = hMemBmp PALBMPFREE( hBitmap, hPalette ) PALBMPNEW( oImg:hWnd, oImg:hBitmap, oImg:hPalette ) oImg:Refresh() RETURN ...
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: 8374

Re: testMap

... provve->posx nCol := provve->posy oCartina:bPainted = { |hDC| FLOODFILL( hDC,nRow,nCol,12632256) } Else Endif oDlg:UPDATE() oDlg:refresh() DeleteDC( hDC ) oDlg:ReleaseDC() Return nil But it put the color to everything on bitmap and not run ok perhaps the function FLOODFILL was changed ?
by Silvio.Falconi
Tue Mar 26, 2013 9:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: testMap
Replies: 6
Views: 1638

Problemas al crear la libreria TWBROWSE

... DeleteObject(SelectObject(hdcMem, bmMemOld)); DeleteObject(SelectObject(hdcBack, bmBackOld)); DeleteObject(SelectObject(hdcObject, bmObjectOld)); DeleteDC(hdcMem); DeleteDC(hdcBack); DeleteDC(hdcObject); DeleteDC(hdcTemp); } //---------------------------------------------------------------------------// ...
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: Code Bar PDF417 ó QR Code

... y elimina el handle del bitmap que estas creando hBmp SelectObject( hDC, hOldBmp ) DeleteObject( hBmp ) 2) eliminar el hDC que ya no usas con DeleteDC( hDC ) ahora prueba esta secuencia DrawBitmap( hDC, oCode:hCodeBar, 0, 0 )SelectObject( hDC, hOldBmp )hDib := DibFromBitmap( ...
by Daniel Garcia-Gil
Tue Aug 23, 2011 11:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Code Bar PDF417 ó QR Code
Replies: 50
Views: 13383

Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01

... DeleteObject(SelectObject(hdcMem, bmMemOld)); DeleteObject(SelectObject(hdcBack, bmBackOld)); DeleteObject(SelectObject(hdcObject, bmObjectOld)); DeleteDC(hdcMem); DeleteDC(hdcBack); DeleteDC(hdcObject); DeleteDC(hdcTemp); } //---------------------------------------------------------------------------// ...
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