Search found 88 matches: drawbitmap

Return to advanced search

Re: Bitmap + binary

Antonio, Enrico, For a simple bitmap painting use DrawBitmap(). If you need transparency, or to specify a raster operation, or to use a palette, then use PalBmpDraw(), (sort of an extended DrawBitmap()) So, for simple painting as in ON PAINT DrawBitmap( ...
by Enrico Maria Giordano
Thu Aug 15, 2013 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bitmap + binary
Replies: 19
Views: 3663

Re: Bitmap + binary

Enrico,

For a simple bitmap painting use DrawBitmap().

If you need transparency, or to specify a raster operation, or to use a palette, then use PalBmpDraw(), (sort of an extended DrawBitmap())
by Antonio Linares
Thu Aug 15, 2013 9:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bitmap + binary
Replies: 19
Views: 3663

Re: Unas cuantas cuestiones

Gracias Antonio por tus respuestas. ON PAINT DrawBitmap( hDC, oImage:hBitmap, 0, 0, oWnd:nWidth, oWnd:nHeight ) Esto me deja poner el png pero no me lo deja centrado, tengo que restarle a oWnd:nHeight la cantidad de pixeles que tienen la Barra ...
by Pedro
Wed May 22, 2013 4:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Unas cuantas cuestiones (Solucionado )
Replies: 20
Views: 5910

Problemas al crear la libreria TWBROWSE

... static void FW_DrawText( HDC hDC, RECT * rct, LPCSTR pText, WORD wAlign, int iLen, HFONT hFont, BOOL bHeadFoot ) ; // CeSoTech static void FW_DrawBitmapCenter( HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bFocused ) ; void MaskRegion( HDC hDC, RECT * rct, COLORREF cTrColor, COLORREF ...
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: Comments and requests about TWBrowse

Marco, In FWH/source/winapi/bmpdraw.c DrawBitmap() is defined as: void DrawBitmap( HDC hdc, HBITMAP hbm, WORD wCol, WORD wRow, WORD wWidth, WORD wHeight, DWORD dwRaster ) please change it as: void DrawBitmap( HDC hdc, HBITMAP hbm, int wCol, ...
by Antonio Linares
Thu Sep 27, 2012 8:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comments and requests about TWBrowse
Replies: 58
Views: 13764

Re: Comments and requests about TWBrowse

Marco,

Try with different values from zero here:

DrawBitmap( ::hDC, ::hSaveScr, 1, 0 )
by Antonio Linares
Wed Sep 26, 2012 5:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comments and requests about TWBrowse
Replies: 58
Views: 13764

Re: Rotar BitMap para brujula GPS

... "compass.bmp" ) local i if hBitmap != 0 // el tamaño del bitmap es 211 x 211 i = Begin_Rotate( hDC, nAngle, 211/2, 211/2 ) DrawBitmap( hDC, hBitmap, 0, 0 ) End_Rotate(hDC, i ) DeleteObject( hBitmap ) endif return nil #pragma BEGINDUMP #include <hbapi.h> #include <windows.h> ...
by pgfdz
Sun Aug 05, 2012 4:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Rotar BitMap para brujula GPS
Replies: 6
Views: 2093

Re: Bitmaps desde Recursos

Adolfo prueba asi REDEFINE IMAGE oBmp ID 200 OF odlg1 Resource "imagen UPDATE oBmp:lTransparent:=.T. ACTIVATE DIALOG oDlg1 Centered ON PAINT; (DrawBitmap(oDlg1:hDC,oBmp:hBitmap,0,0,oDlg1:nWidth,oDlg1:nHeight),; HollowText(oDlg1,5,200,"",oFont1,CLR_BLUE,2)); saludos
by jbrita
Tue Jan 10, 2012 1:58 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bitmaps desde Recursos
Replies: 7
Views: 2152

¿Como puedo mostrar PNG, JPG o GIF además de BMP?

Hola. Para establecer el fondo de mi aplicación utilizo DrawBitmap() pero sólo me sirve para archivos BMP. ¿Existe alguna función que me permita mostrar archivos PNG, JPG o GIF al igual que hace DrawBitmap()? También me gustaría poder crear BRUSH con ...
by fernandomoralesdr
Fri Dec 16, 2011 7:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Como puedo mostrar PNG, JPG o GIF además de BMP?
Replies: 2
Views: 599

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

And the software versions are :
Code: Select all  Expand view
Harbour 3.1.0dev (Rev. 17102)
gcc version 4.5.2-dw2 (tdm-1)
FWH October 2011
by concentra
Thu Nov 10, 2011 4:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

... __GNUC__   WINBASEAPI BOOL WINAPI MoveTo( HDC, int, int );   WINBASEAPI BOOL WINAPI GetTextExtent( HDC, LPCSTR, int ) ;   WINBASEAPI BOOL WINAPI DrawBitmap( HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth, WORD wHeight, DWORD dwRaster ) ;   WINBASEAPI BOOL WINAPI DrawMasked( HDC hdc, HBITMAP ...
by concentra
Thu Nov 10, 2011 4:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

Please post the complete source code of TSBFUNCS.C
by Antonio Linares
Thu Nov 10, 2011 1:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

... to `DrawMasked(HDC__*, HBITMAP__*, unsigned short, unsigned short)'../TSBFUNCS.o:TSBFUNCS.C:(.text+0x1d9d): undefined reference to `DrawBitmap(HDC__*, HBITMAP__*, unsigned short, unsigned short, unsigned short, unsigned short, unsigned long)'../TSBFUNCS.o:TSBFUNCS.C:(.text+0x1f2f): ...
by concentra
Thu Nov 10, 2011 12:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

What errors do you get from the linker ?
by Antonio Linares
Wed Nov 09, 2011 7:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

Antonio, In order to link, I also needed to include the source of DrawMasked(), DrawBitmap() from \FWH\source\winapi\bmpdraw.c and MaskRegion() from \FWH\source\function\fwbmp.c.

Wasn't this to be in fivehg or fivehgc libs ?
by concentra
Wed Nov 09, 2011 6:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273
PreviousNext

Return to advanced search