Search found 127 matches: releasedc

Return to advanced search

Re: Recortar foto tomada con la camara web

... nCol, hDC | If( nX1 != nil,; ( oImg:Refresh(), SysRefresh(), WndBoxClr( hDC := oImg:GetDC(), nX1, nY1, nX2 := nRow, nY2 := nCol, oPen:hPen ), oImg:ReleaseDC() ),) } Ese código te debe permitir seleccionar el rectángulo de la imagen a salvar. Por favor comprueba si te funciona. Lo próximo es guardar ...
by Antonio Linares
Tue May 23, 2023 4:13 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Recortar foto tomada con la camara web
Replies: 7
Views: 499

signatur.prg How can I know if the user has signed or not?

... oSig:bLClicked := { | x, y, z | DoDraw( hDC, y, x, lPaint := .T. ) } ACTIVATE DIALOG oDlg CENTER ; ON INIT ( hDC := GetDC( oSig:hWnd ) ) ; VALID ( ReleaseDC( oSig:hWnd, hDC ), .T. ) return nil static function DoDraw( hDc, x, y, lPaint ) if ! lPaint MoveTo( hDC, x, y ) else LineTo( hDc, x, y ) endIf ...
by MGA
Fri Nov 11, 2022 3:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: signatur.prg How can I know if the user has signed or not?
Replies: 5
Views: 397

Re: Gluing images

... 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 ?

... := 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: Change color in a bmp

... nColor ) LOCAL hDC := oImg:getDc() FloodFill( hDC, nRow, nCol, nil, nColor ) oImg:SaveToBmp( "A.bmp" ) // save the last result :!: oImg:ReleaseDC() RETURN NIL The original test-image http://www.service-fivewin.de/IMAGES/A.bmp The test http://www.service-fivewin.de/IMAGES/A.jpg ...
by ukoenig
Tue Mar 23, 2021 12:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Change color in a bmp
Replies: 25
Views: 2547

Re: problema con DrawBitmap() usando tCodeBars

... 0, 0, ::nWidthCode, ::nHeightCode ) //DrawText( hDCMem, ::cCode, { ::nHeight - 15, 0, ::nHeight, ::nWidth }, 1 ) SelectObject( hDCMem, hBmpOld ) ReleaseDC( GetDesktopWindow(), hDCDesk ) DeleteDC( hDCMem ) DeleteObject( hBrush ) DeleteObject( hBack ) return NIL //--------------------------------------// ...
by rterraz
Mon Mar 15, 2021 12:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con DrawBitmap() usando tCodeBars
Replies: 10
Views: 1034

Al compiliar sbrowse TSBFUNCS.C me marca errores

... (wRow - 1) ) + 1 ; rct.bottom = rct.top + wHeight ; rct.left += wCol ; rct.right = rct.left + wWidth ; if( hFont ) SelectObject( hDC, hOldFont ) ; ReleaseDC( hWnd, hDC ) ; _reta( 4 ) ; _storni( rct.top, -1, 1 ) ; _storni( rct.left, -1, 2 ) ; _storni( rct.bottom, -1, 3 ) ; _storni( ( wMaxRight <= ...
by noe aburto
Thu Aug 27, 2020 6:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Al compiliar sbrowse TSBFUNCS.C me marca errores
Replies: 1
Views: 287

Re: Any tests drawing text with GDIPLUS ?

... nTop, nWidth, nHight oPath:AddRoundRect( 550, 300, 200, 200, 50 ) oGraphics:FillPath( oBrush2, oPath) oGraphics:Destroy() oPen:Destroy() oWnd:releasedc() RETURN NIL regards Uwe :D
by ukoenig
Thu Sep 26, 2019 10:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Any tests drawing text with GDIPLUS ?
Replies: 7
Views: 1541

Re: Any tests drawing text with GDIPLUS ?

... nTop, nWidth, nHight oPath:AddRoundRect( 550, 300, 200, 200, 50 ) oGraphics:FillPath( oBrush, oPath) oGraphics:Destroy() oPen:Destroy() oWnd:releasedc() RETURN NIL regards Uwe :?:
by ukoenig
Thu Sep 26, 2019 8:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Any tests drawing text with GDIPLUS ?
Replies: 7
Views: 1541

Re: Opaque controls

... hBmp, 3 ) PalBmpDraw( oApp:oGrid:hDC, 0, 0, hBlur ) DEFINE DIALOG oDlg DEFINE DIALOG oDlg DeleteObject( hBmp ) DeleteObject( hBlur ) oApp:oGrid:ReleaseDC()
by Silvio.Falconi
Tue Apr 16, 2019 12:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Opaque controls
Replies: 5
Views: 713

Possible to add < roundrect > to FW_CreateBitmap ?

... 0, 0 , 10 ) local oPath:= Path():new() oPath:AddRoundRect( 300, 250, 150, 100 , 20 ) oGraphics:DrawPath( oPen2, oPath ) oGraphics:destroy() oWnd:releasedc() Return nil // -------------- - New Function: FW_CreateBitmap( { nWidth, nHeight, aShapes }. [lGDIP] ) --> hBitmap (if lGDIP is .F. ) ...
by ukoenig
Fri Mar 23, 2018 8:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Possible to add < roundrect > to FW_CreateBitmap ?
Replies: 0
Views: 531

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

... hDC, nLeft, nTop, nWidth, nHeight, hDeskTop, a[2]-(nWidth/(nZoom*2)), a[1]-(nHeight/(2*nZoom)), nWidth/nZoom, nHeight/nZoom, 13369376 ) oWnd:ReleaseDC() ReleaseDC( 0, hDeskTop ) RETURN nil result of sample < Zoomer.prg > like You can see, the cursorposition is different http://www.pflegeplus.com/IMAGES/Zoomer2.jpg ...
by ukoenig
Mon Nov 13, 2017 12:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4913

A Colorpicker and RGB-tools

... + CRLF + ; "Row : " + LTRIM(STR(nRow)) + CRLF + ; "Col : " + LTRIM(STR(nCol)), "Position") } don't forget ReleaseDC(hDC) after oDlg:End() regards Uwe :D
by ukoenig
Thu Nov 09, 2017 4:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A Colorpicker and RGB-tools
Replies: 53
Views: 7974

Re: Ayuda cpm hbzebra.lib

... && aqui lo mando a un archivo file.bmp de 10x10 tam hDib := DibFromBitmap(oCode:hCodeBar ) DibWrite( "file.bmp" , hDib ) * oWndP:ReleaseDC() * oWndP:END() return nil
by Busmatic_wpb
Thu Sep 07, 2017 1:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda cpm hbzebra.lib
Replies: 12
Views: 2651

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: 6333
Next

Return to advanced search