Search found 44 matches: resizebmp

Return to advanced search

Re: Brush

... oDlg ) Local oImagem, oBrush Local cImagem := "..\bitmaps\pngs\2.png" DEFINE IMAGE oImagem FILENAME cImagem oBrush := TBrush():new( ,,,, ResizeBmp( oImagem:hBitmap, 600, 600, .T. ) ) oImagem:End() oDlg:SetBrush( oBrush ) oBrush:End() Return NIL *----------------------------------------------------------------------------------*
by oliveiros junior
Fri Apr 19, 2024 1:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Brush
Replies: 10
Views: 1277

Re: Detect Image size and resize

hi,

use :ReadImage() to get Bitmap Information in Array. Size are 3rd and 4th Element
use HB_FUNC( RESIZEBMP ) in \fwh\source\winapi\bmpdraw.c for new Size
by Jimmy
Mon Nov 21, 2022 11:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Detect Image size and resize
Replies: 1
Views: 308

Destroy HBITMAP ?

hi, i want to use HB_FUNC(RESIZEBMP) and ::oWnd:ReadImage() which both "produce" hBitmap Question : do i need to "Destroy" hBitmap :?: if Yes, how under Fivewin   aBitmaps := ::oWnd:ReadImage( ::cPath + cFile, { ...
by Jimmy
Sat Oct 22, 2022 1:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Destroy HBITMAP ?
Replies: 5
Views: 451

Re: A METRO image-background without FREEIMAGE ?

... aRect, nil, 1 ) a working solution // metro image-background ( FREEIMAGE needed ) DEFINE IMAGE oImage FILENAME cImage oBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], .T. ) ) // 1 = stretch, 2 : fitoutside, 3:fitinside oImage:End() oMetro:SetBrush( oBrush ) RELEASE BRUSH ...
by nageswaragunupudi
Mon Sep 09, 2019 4:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A METRO image-background without FREEIMAGE ?
Replies: 5
Views: 1068

A METRO image-background without FREEIMAGE ?

... aRect, nil, 1 ) a working solution // metro image-background ( FREEIMAGE needed ) DEFINE IMAGE oImage FILENAME cImage oBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], .T. ) ) // 1 = stretch, 2 : fitoutside, 3:fitinside oImage:End() oMetro:SetBrush( oBrush ) RELEASE BRUSH ...
by ukoenig
Sat Sep 07, 2019 3:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A METRO image-background without FREEIMAGE ?
Replies: 5
Views: 1068

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

Re: TImage zoom

... OR : local oImage, oBrush, aRect := oDlg:GetRect() DEFINE IMAGE oImage FILENAME "..\bitmaps\pngs\chart.png" oBrush := TBrush():new( ,,,, ResizeBmp( oImage:hBitmap, aRect[4], aRect[3], .T. ) ) // 1 = stretch, 2 : fitoutside, 3:fitinside oImage:End() oDlg:SetBrush( oBrush ) oBrush:End() ...
by ukoenig
Wed Apr 06, 2016 8:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TImage zoom
Replies: 14
Views: 2968

Re: Bad quality with GIF (and GDI+)

I hope the quality issue is now resolved. In any case, FWH libs are no more using ResizeImg or ResizeBmp for rendering resized images, except for Gray images. Whether both methods differ by a pixel or not now remains an academic issue. With your help, we now added resize ...
by nageswaragunupudi
Wed Nov 04, 2015 10:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bad quality with GIF (and GDI+)
Replies: 84
Views: 12350

Re: Bad quality with GIF (and GDI+)

I was not clear enough. The misalignment is between ResizeImg() and ResizeBmp().

EMG
by Enrico Maria Giordano
Wed Nov 04, 2015 10:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bad quality with GIF (and GDI+)
Replies: 84
Views: 12350

Re: Bug in ResizeImg()

Alternatively, I found that ResizeBmp() works very well and fast if SetStretchBltMode() is set to COLORONCOLOR:

Code: Select all  Expand view  RUN
SetStretchBltMode (hdcDest, COLORONCOLOR);


What do you think about it?

EMG
by Enrico Maria Giordano
Thu Oct 29, 2015 4:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in ResizeImg()
Replies: 25
Views: 3530

Bug in ResizeImg()

The result of ResizeImg() is slightly different in width and height if compared with ResizeBmp() and PalBmpDraw().

EMG
by Enrico Maria Giordano
Wed Oct 28, 2015 2:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in ResizeImg()
Replies: 25
Views: 3530

Re: FWH1507 estranho comportamento

Olá, Tem algum Refresh() nas imagens das mesas? Poste o código mais amplo para leitura, tem algum RESIZEBMP() no código? Como você está definindo as FONTES? Troca a FONTE em tempo real?

Abs
by karinha
Fri Sep 11, 2015 1:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FWH1507 estranho comportamento
Replies: 3
Views: 555

Re: to nages : fix to Tbitmap paint

... of paint method, because this creation by resize is at two places in the paint method. Hope you too will agree. Also I am considering replacing resizebmp with resizeimg because I found the later function produces a better quality resizing. You may test it too on different bitmaps of different ...
by nageswaragunupudi
Wed Mar 11, 2015 12:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: to nages : fix to Tbitmap paint
Replies: 4
Views: 838

Re: Ayuda Brush Ventana y Parpadeo

Antonio, El código es muy largo, pero si te sirve, uso esto antes del Activate: oBrush := TBrush():new( ,,,, ResizeBmp( ::oBmpFondo:hBitmap, ::nAnchoPant,::nAltoPant, .T. ) ) ::oBmpFondo:End() ::oWnd:setBrush( oBrush ) oBrush:end() Luego para cambiar, otra brush definida antes: ...
by jmartial
Wed Jan 14, 2015 5:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda Brush Ventana y Parpadeo
Replies: 5
Views: 1139

Re: Load, show in dialog, interactively crop and save cropped

... looks very interesting. I cannot see how to crop the image and save it under another name? Also, when trying to recompile, I got the missing "ResizeBmp()" and "CreateDiBitmap()" Any advice? Can you add the functionality to be able to also CROP and SAVE a bitmap after the user ...
by codemaker
Wed Jun 27, 2012 9:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Load, show in dialog, interactively crop and save cropped
Replies: 31
Views: 10436
Next

Return to advanced search