Search found 28 matches: stretchblt

Return to advanced search

PAINTSTRUCT ps

... bm.bmWidth * rect.bottom / bm.bmHeight;         else            rect.bottom = (int) bm.bmHeight * rect.right / bm.bmWidth;          StretchBlt(hDC, rect.left, rect.top, rect.right, rect.bottom, memDC, 0, 0, bm.bmWidth, bm.bmHeight, SRCCOPY);       }       if (nMode ...
by Jimmy
Wed Dec 18, 2019 4:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PAINTSTRUCT ps
Replies: 3
Views: 445

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

... nLeft + nWidth+1, nTop-1 ) LINETO( hDC, nLeft + nWidth+1, nTop+nHeight+1 ) LINETO( hDC, nLeft -1, nTop+nHeight+1 ) LINETO( hDC, nLeft-1, nTop-1) STRETCHBLT( hDC, nLeft, nTop, nWidth, nHeight, hDeskTop, ; a[2] * 1.25 -(nWidth/(nZoom*2)), a[1] * 1.25 -(nHeight/(2*nZoom)), ; nWidth/nZoom, nHeight/nZoom, ...
by ukoenig
Sat Nov 18, 2017 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4911

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

... nColor := GetPixel( hDeskTop, a[2], a[1] ) local hDC := oWnd:GetDC() local nTop := 0 local nLeft := 0 local nWidth := 200 local nHeight := 200 StretchBlt( hDC, nLeft, nTop, nWidth, nHeight, hDeskTop, a[2]-(nWidth/(nZoom*2)), a[1]-(nHeight/(2*nZoom)), nWidth/nZoom, nHeight/nZoom, 13369376 ) ...
by ukoenig
Mon Nov 13, 2017 12:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4911

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

Canal5 Calendar

... was wondering if anyone saw anything about the .c source that may cause a problem. #include <hbapi.h> #include <windows.h> BOOL WINAPI StretchBlt(HDC, int, int, int, int, HDC, int, int, int, int, DWORD); HB_FUNC( COMPATDC ) // ( hDC ) { hb_retnl( ( LONG ) CreateCompatibleDC( ( HDC ) ...
by Randal
Mon Feb 13, 2017 6:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Canal5 Calendar
Replies: 15
Views: 5697

Re: TImage zoom

... if oImg:Cargo!=0.and.nDelta<0 oImg:Refresh() Vrt_Dlg() endif hDC:=GetDC(oImg:hWnd) cnt:=oImg:Cargo+=iif(nDelta<0, -1, 1) StretchBlt( hDC, 0, 0, nWidth, nHeight, ; hDC, ; 30*cnt, 30*cnt, ; nWidth-(30*cnt*2), ; nHeight-(30*cnt*2), 13369376 ) oImg:ReleaseDC() endif RETURN ...
by Natter
Fri Apr 08, 2016 4:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TImage zoom
Replies: 14
Views: 2590

Re: TImage zoom

I did zoom to TImage using StretchBlt(), but unzoom does not work
by Natter
Wed Apr 06, 2016 8:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TImage zoom
Replies: 14
Views: 2590

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

Re: Ampliar Imagen por zona de seleccion

... image will be zoomed and fill all container area. The sample you can not catch and move the image only select a area to zoom the function doing StretchBlt all magic you can calculate percent of nWidth and nHeight and set the new value in function StretchBlt
by Daniel Garcia-Gil
Wed Nov 13, 2013 1:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ampliar Imagen por zona de seleccion
Replies: 4
Views: 1058

Re: ejemplo c5Tooltip

... octavo parámetro como hPen y además los parámetros de coordenadas estan cambiados. Hay que revisar los PRGs de Paco en donde se use. * la función StretchBlt() estaba ya en FWH en bmpdraw.c. Los parámetros son los mismos. * Se elimina la función WideToAnsi() pues ya existía en FWH. * Se elimina ...
by Antonio Linares
Fri Sep 13, 2013 7:03 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ejemplo c5Tooltip
Replies: 60
Views: 23893

Re: Escalar BMP capturado con WndBitmap

Holas,

encontre esta funcion StretchBlt creo que podria ser de ayuda, si tienen otra opcion me gustaria saberla

saludos

Marcelo
by Marcelo Via Giglio
Mon Dec 14, 2009 8:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Escalar BMP capturado con WndBitmap
Replies: 17
Views: 3543

Re: How to resize a bitmap ?

bmpResized := ResizeBmp( hOldBmp, nNewWidth, nNewHeight ) Maybe a possible solution, to use StretchBlt() for the new Brush-functions in FWH-9.06, to get the Image-Brush adjusted to the Dialog ??? The ResizeBmp function internally uses StretchBlt(). So using resizebmp ...
by nageswaragunupudi
Tue Jul 14, 2009 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to resize a bitmap ?
Replies: 8
Views: 1756

Re: How to resize a bitmap ?

Maybe a possible solution, to use StretchBlt() for the new Brush-functions in FWH-9.06, to get the Image-Brush adjusted to the Dialog ??? http://www.pflegeplus.com/pictures/test6.jpg //--------- IMAGE - BRUSH ------------------------ ...
by ukoenig
Tue Jul 14, 2009 8:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to resize a bitmap ?
Replies: 8
Views: 1756

A question about FWH-Release-Versions for function-use

... release-version and if it is possible, to include the source to use for old FWH-versions ------------------------------------------------------ StretchBlt( hDC, nLeft, nTop, nWidth, nHeight ) I think, this started with < September 2007 build > ( outlook 2003 ) --------------------------------------------------------------------------- ...
by ukoenig
Mon Nov 10, 2008 1:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A question about FWH-Release-Versions for function-use
Replies: 5
Views: 1211

Antonio Linares wrote:Toninho,

You have to use Windows API StretchBlt()


Hi Antonio.

Nice hint. Thanks a lot.

Regards,

Toninho.
by toninhofwi
Sat Nov 08, 2008 11:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to resize a bitmap ?
Replies: 8
Views: 1756
Next

Return to advanced search