on oldest class I have DrawBitmap
But it show only Bitmap files
I load the files with new ReadImage() so I have also the size
I wish use also png files how I can converte it ?
I must use bitblt ?
Search found 35 matches: bitblt
Searched query: bitblt
- Mon Jan 06, 2020 12:09 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: DrawBitmap
- Replies: 4
- Views: 852
- Tue Apr 16, 2019 2:06 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Cut out an area of the screen
- Replies: 15
- Views: 2459
- Tue Apr 16, 2019 2:02 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Cut out an area of the screen
- Replies: 15
- Views: 2459
Re: Cut out an area of the screen
Very nice, but I need to use bitblt()
- Thu Aug 31, 2017 2:56 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ayuda DLL
- Replies: 24
- Views: 8630
Re: Ayuda DLL
... Error: Unresolved external '_HB_FUN_NGETBACKRGB' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|TMSGITEM
Error: Unresolved external '_HB_FUN_BITBLT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|TMSGITEM
Error: Unresolved external '_HB_FUN_DRAWMASKED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB ...
Error: Unresolved external '_HB_FUN_BITBLT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|TMSGITEM
Error: Unresolved external '_HB_FUN_DRAWMASKED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB ...
- Wed Apr 05, 2017 8:30 am
- Forum: Bugs report & fixes / Informe de errores y arreglos
- Topic: Bug in HasAlpha()
- Replies: 21
- Views: 15548
Re: Bug in HasAlpha()
BitBlt() is the fastest way to manage bitmaps
Not sure if there is a flag we could used for Alpha channel detection
Not sure if there is a flag we could used for Alpha channel detection
- Mon Feb 13, 2017 6:09 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Canal5 Calendar
- Replies: 15
- Views: 6465
Canal5 Calendar
... 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 , nYSrc, dwRop )
{
hb_retl( BitBlt( ( HDC ) hb_parnl( 1 ), hb_parni( 2 ), hb_parni ...
{
hb_retnl( (LONG) CreateCompatibleBitmap( (HDC) hb_parnl(1),hb_parni(2), hb_parni(3) ) );
}
HB_FUNC( BITBLT ) // ( hdcDest, nXDest, nYDest, nWidth, nHeight,hdcSrc, nXSrc , nYSrc, dwRop )
{
hb_retl( BitBlt( ( HDC ) hb_parnl( 1 ), hb_parni( 2 ), hb_parni ...
- Tue Dec 13, 2016 10:22 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Crear BMP monocromo
- Replies: 5
- Views: 1172
Re: Crear BMP monocromo
El sistema más rápido es BitBlt() pues está diseñado para mover bloques enteros de memoria de una vez
Revisa el código, por ejemplo, de la función DrawGrayed() en source\winapi\bmpdraw.c
y verás como usar BitBlt()
Revisa el código, por ejemplo, de la función DrawGrayed() en source\winapi\bmpdraw.c
y verás como usar BitBlt()
- Mon Dec 12, 2016 9:35 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Crear BMP monocromo
- Replies: 5
- Views: 1172
Re: Crear BMP monocromo
Antes de llamar a BitBlt() tienes que seleccionar también el bitmap original en su hDC:
HBITMAP hbmPrev2 = SelectBitmap( hDcColor, hBitmapColor );
HBITMAP hbmPrev2 = SelectBitmap( hDcColor, hBitmapColor );
- Mon Dec 12, 2016 11:31 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Crear BMP monocromo
- Replies: 5
- Views: 1172
Re: Crear BMP monocromo
Joaquín,
La forma más rápida de hacerlo es usar la función de Windows BitBlt()
1. Creas 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 ...
La forma más rápida de hacerlo es usar la función de Windows BitBlt()
1. Creas 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 ...
- Tue Apr 05, 2016 1:33 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Device context to file
- Replies: 4
- Views: 953
Re: Device context to file
... 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) //SCRCOPY
oImg:=GdiBmp():New()
oImg:hBmp:=Gdip_FromHBitmap(hBmp,, HasAlpha ...
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) //SCRCOPY
oImg:=GdiBmp():New()
oImg:hBmp:=Gdip_FromHBitmap(hBmp,, HasAlpha ...
- Wed Dec 09, 2015 6:48 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Split image
- Replies: 4
- Views: 913
Re: Split image
... winapi\bmpdraw.c
and use it to split your bitmap into several ones:
Change this line parameters to specify the origin and the dimensions:
BitBlt( hdcDest, 0, 0, bmp.bmWidth, bmp.bmHeight, hdcSrc, 0, 0, SRCCOPY);
HBITMAP DuplicateBitmap( HBITMAP hbmpSrc ){ HBITMAP ...
and use it to split your bitmap into several ones:
Change this line parameters to specify the origin and the dimensions:
BitBlt( hdcDest, 0, 0, bmp.bmWidth, bmp.bmHeight, hdcSrc, 0, 0, SRCCOPY);
HBITMAP DuplicateBitmap( HBITMAP hbmpSrc ){ HBITMAP ...
- Fri Jul 24, 2015 10:39 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Leer pixeles de un bitmap monocromo
- Replies: 30
- Views: 5568
Re: Leer pixeles de un bitmap monocromo
Antes del BitBlt() prueba a hacer:
SetBkColor( hDCMem, GetPixel( hBitmap, 0, 0 ) );
SetBkColor( hDCMem, GetPixel( hBitmap, 0, 0 ) );
- Fri Jul 24, 2015 9:45 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Leer pixeles de un bitmap monocromo
- Replies: 30
- Views: 5568
Re: Leer pixeles de un bitmap monocromo
... CreateCompatibleDC( hDC );
HBITMAP hBmp = CreateCompatibleBitmap( hDC, rc->right - rc->left, rc->bottom -
rc->top );
HBITMAP hBmpOld = ( HBITMAP ) SelectObject( hDCMem, hBmp );
BitBlt( hDCMem, 0, 0, rc->right, rc->bottom, hDC, 0, 0, SRCCOPY );
SelectObject( hDCMem, hBmpOld );
DeleteDC( hDCMem );
HBITMAP hBmp = CreateCompatibleBitmap( hDC, rc->right - rc->left, rc->bottom -
rc->top );
HBITMAP hBmpOld = ( HBITMAP ) SelectObject( hDCMem, hBmp );
BitBlt( hDCMem, 0, 0, rc->right, rc->bottom, hDC, 0, 0, SRCCOPY );
SelectObject( hDCMem, hBmpOld );
DeleteDC( hDCMem );
- Thu Jul 23, 2015 12:42 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Leer pixeles de un bitmap monocromo
- Replies: 30
- Views: 5568
Re: Leer pixeles de un bitmap monocromo
... el hDCMemResultante.
Es decir, ya he cargado en un hDC el bitmap original, lo he analizado y visto cual sería la nueva altura del bitmap, con Bitblt lo he copiado a otro hDCMemResultante con la nueva medida (es decir, lo he cortado).
¿ Cómo consigo el handle del nuevo bitmap a partir del ...
Es decir, ya he cargado en un hDC el bitmap original, lo he analizado y visto cual sería la nueva altura del bitmap, con Bitblt lo he copiado a otro hDCMemResultante con la nueva medida (es decir, lo he cortado).
¿ Cómo consigo el handle del nuevo bitmap a partir del ...
- Thu Jul 23, 2015 11:58 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Leer pixeles de un bitmap monocromo
- Replies: 30
- Views: 5568
Re: Leer pixeles de un bitmap monocromo
Joaquin,
Tienes que crear un nuevo bitmap en memoria con las dimensiones que quieras y copiar del anterior usando BitBlt()
Busca por BitBlt() en el código fuente de FWH
Tienes que crear un nuevo bitmap en memoria con las dimensiones que quieras y copiar del anterior usando BitBlt()
Busca por BitBlt() en el código fuente de FWH