Search found 35 matches: bitblt

Return to advanced search

DrawBitmap

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 ?
by Silvio.Falconi
Mon Jan 06, 2020 12:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DrawBitmap
Replies: 4
Views: 820

Re: Cut out an area of the screen

I made a TcropImage class and I use bitblt()
https://github.com/silviofalconi/TCropImage
by Silvio.Falconi
Tue Apr 16, 2019 2:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Cut out an area of the screen
Replies: 15
Views: 2327

Re: Cut out an area of the screen

Very nice, but I need to use bitblt()
by Natter
Tue Apr 16, 2019 2:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Cut out an area of the screen
Replies: 15
Views: 2327

Re: Ayuda DLL

Antonio, aquí la segunda parte: Error: Unresolved external '_HB_FUN_DRAWTHEMED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_GETDLGBASEUNITS' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_CDLG2CHR' referenced from P...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 7758

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
by Antonio Linares
Wed Apr 05, 2017 8:30 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 12034

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( ...
by Randal
Mon Feb 13, 2017 6:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Canal5 Calendar
Replies: 15
Views: 6286

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()
by Antonio Linares
Tue Dec 13, 2016 10:22 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Crear BMP monocromo
Replies: 5
Views: 1080

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 );
by Antonio Linares
Mon Dec 12, 2016 9:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Crear BMP monocromo
Replies: 5
Views: 1080

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 ...
by Antonio Linares
Mon Dec 12, 2016 11:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Crear BMP monocromo
Replies: 5
Views: 1080

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

Re: Split image

... 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 ...
by Antonio Linares
Wed Dec 09, 2015 6:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Split image
Replies: 4
Views: 847

Re: Leer pixeles de un bitmap monocromo

Antes del BitBlt() prueba a hacer:

SetBkColor( hDCMem, GetPixel( hBitmap, 0, 0 ) );
by Antonio Linares
Fri Jul 24, 2015 10:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 5187

Re: Leer pixeles de un bitmap monocromo

... 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 );
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: 5187

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 hDCMemResultante, ...
by jmartial
Thu Jul 23, 2015 12:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 5187

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
by Antonio Linares
Thu Jul 23, 2015 11:58 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 5187
Next

Return to advanced search