Search found 35 matches: createcompatibledc

Return to advanced search

A slider solution to adjust the color brightness ?

... loading the basic-gradientbitmap next using the nrow position from the slider to get the color FUNCTION GETCOLOR( nRow, nCol, oBmp ) LOCAL hDC := CreateCompatibleDC( oBmp:GetDC() ) LOCAL hBmp := ReadBitmap( 0, "Picker.bmp" ) // the basic gradient bmp LOCAL hOldBmp := SelectObject( hDC, ...
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

... 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: 977

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: 6287

Canal5 Calendar

... BOOL WINAPI StretchBlt(HDC, int, int, int, int, HDC, int, int, int, int, DWORD); HB_FUNC( COMPATDC ) // ( hDC ) { hb_retnl( ( LONG ) CreateCompatibleDC( ( HDC ) hb_parnl( 1 ) ) ); // hb_retni( CreateCompatibleDC( hb_parnl( 1 ) ) ); } HB_FUNC( COMPATBMP ) // ( hDC, nWidth, nHeight ...
by Randal
Mon Feb 13, 2017 6:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Canal5 Calendar
Replies: 15
Views: 5694

Re: Crear BMP monocromo

... un bitmap monocromo HBITMAP hBmpMono = CreateBitmap( 100, 100, 1, 1, NULL ); 2. Creas un hDC para usarlo con ese bitmap monocromo: HDC hDcMono = CreateCompatibleDC( NULL ); 3. Seleccionas ese bitmap monocromo en ese hDcMono y guardamos su "imagen" anterior: HBITMAP hbmPrev = SelectBitmap( ...
by Antonio Linares
Mon Dec 12, 2016 11:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Crear BMP monocromo
Replies: 5
Views: 982

Re: Device context to file

hDeskTop:=GetWindowDc(FindWindow(...)) siz:=GetWndRect(hDeskTop) hDC := CreateCompatibleDC( hDeskTop ) hBmp := CreateCompatibleBitMap( hDC, siz[4]-siz[2], siz[3]-siz[1]) hOldBmp:=SelectObject(hDc, hBmp) BitBlt(hDc, 0, 0, siz[4]-siz[2], siz[3]-siz[1], hDeskTop, ...
by Natter
Tue Apr 05, 2016 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Device context to file
Replies: 4
Views: 848

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: 4140

Re: Error compiling with latest Xharbour commercial

Hello Antonio. Some errors went away. Now I have another one, from the same source. Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"c:\fwh\lib" -LIBPATH:"C:\xHB\lib" -LIBPATH:"C:\xHB\c_lib" -LIBPATH:"C:\...
by Massimo Linossi
Sat Jul 11, 2015 4:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error compiling with latest Xharbour commercial
Replies: 7
Views: 2049

Re: bmpfromico

... 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), GetSystemMetrics(SM_CYICON)); HBITMAP hOldBitmap ...
by Silvio.Falconi
Fri Jul 03, 2015 3:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bmpfromico
Replies: 32
Views: 8968

Re: Redimensionando un Scroll

Perdón no me he dado cuenta. En algunas versiones de FWH CreateCompatibleDc() viene como CraeteCDC() y CreateCompBmp es invento mio porque no tengo el CreateCompatibleBitmap(), que a lo mejor si lo teneis, o no, en cuyo caso así se implementa en Borland ...
by antolin
Sun Sep 14, 2014 7:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Redimensionando un Scroll
Replies: 11
Views: 1600

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

... STATIC FUNCTION DRAWIMG( oImg, hDC, hPen, nPensize, nPenColor ) LOCAL nWidth := oImg:nWidth() LOCAL nHeight := oImg:nHeight() LOCAL hMemDC := CREATECOMPATIBLEDC( hDC ) LOCAL hMemBmp := CREATECOMPATIBLEBITMAP( hDC, nWidth, nHeight ) LOCAL hBmpOld := SELECTOBJECT( hMemDC, hMemBmp ) LOCAL hBitmap ...
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: 8319

Re: Create a bitmap

Günther,

Please look for CreateCompatibleDC and CreateCompatibleBitmap in FWH sources, you will find several code examples
by Antonio Linares
Sat Nov 09, 2013 9:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a bitmap
Replies: 4
Views: 1759

Re: "Snap" for Clipper

...     2036  2038  2039  2040  2041  2043  2044  2045  2046  2050                   2054  2056 CREATECOMPATIBLEBITM    WINDOW.PRG     2963 CREATECOMPATIBLEDC()   (function  in ?)    WINDOW.PRG     2962 CREATEPATTERNBRUSH()   (function  in ?)    WINDOW.PRG     2971 CREATETOOLTIP()       ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6540

Re: ejemplo c5Tooltip

... Paco y la nuestra. * la función CreateCompatibleBitmap() pasa a las funciones de bitmaps de FWH. la sintaxis se mantiene. * Igual para la función CreateCompatibleDC() * La función DeleteFile() de Paco se renombró a FWDeleteFile(). * La función DrawState() se llevó al fichero drawing.c de FWH, ...
by Antonio Linares
Fri Sep 13, 2013 7:03 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ejemplo c5Tooltip
Replies: 60
Views: 23368

Re: BackGround Painting

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

Return to advanced search

cron