Search found 48 matches: createcompatiblebitmap

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 on hDCMem this way: hBmp = ...
by Antonio Linares
Tue Oct 12, 2021 5:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Gluing images
Replies: 8
Views: 668

Re: problema con DrawBitmap() usando tCodeBars

... ) local hDCMem := CreateCompatibleDC( hDCDesk ) local hBrush := CreateSolidBrush( 0 ) local hBack := CreateSolidBrush( CLR_WHITE ) ::hCodeBar = CreateCompatibleBitMap( hDCDesk, ::nWidth, ::nHeight ) hBmpOld = SelectObject( hDCMem, ::hCodeBar ) ::hData := Eval( ::aTypes[ ::nType ][ CODEBAR_BLOCK ...
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: 6286

Re: Printing in GDI+

Yes, you are right! A complete picture to print is ok.
But to write to a printer-hDc (oPrint-class) the same transparent circles is not possible! Is always full color. Only some printers are able to print transparent output.
The png i make with CreateCompatibleBitMap( ) and write to a file.
by byte-one
Mon Feb 13, 2017 11:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing in GDI+
Replies: 11
Views: 2208

Canal5 Calendar

... HDC ) hb_parnl( 1 ) ) ); // hb_retni( CreateCompatibleDC( hb_parnl( 1 ) ) ); } HB_FUNC( COMPATBMP ) // ( hDC, nWidth, nHeight ) { hb_retnl( (LONG) CreateCompatibleBitmap( (HDC) hb_parnl(1),hb_parni(2), hb_parni(3) ) ); } HB_FUNC( BITBLT ) // ( hdcDest, nXDest, nYDest, nWidth, nHeight,hdcSrc, nXSrc ...
by Randal
Mon Feb 13, 2017 6:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Canal5 Calendar
Replies: 15
Views: 5694

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, 0, 0, 13369376) ...
by Natter
Tue Apr 05, 2016 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Device context to file
Replies: 4
Views: 848

Re: Question rPreview

Same routines to make bitmaps with CreateCompatibleBitmap() use on other places in program without problems! if i use CreateCompatibleBitmap() only in black/white (the standard hdc) is ok! My opinion is that TImageList() or TTreeView() is the problem!
Tomorrow ill send a screenshoot!
by byte-one
Fri Mar 04, 2016 12:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question rPreview
Replies: 6
Views: 882

Re: Leer pixeles de un bitmap monocromo

Antonio,

¿para un bitmap monocromo, como indico el HDC original ?

Con CreateCompatibleBitmap sí tiene ese parámetro.
by jmartial
Fri Jul 24, 2015 9:58 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 4140

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, hBmp ); BitBlt( 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

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 ...
by Silvio.Falconi
Fri Jul 03, 2015 4:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bmpfromico
Replies: 32
Views: 8968

Re: bmpfromico

... ) { 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 = (HBITMAP)SelectObject(hDC, hBitmap); ...
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

... 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 C++: HB_FUNC( CREATECOMPBMP )    //  ...
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) :-)

... 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 := oImg:hBitmap LOCAL hPalette := oImg: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: 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: 1758
Next

Return to advanced search