Search found 44 matches: resizeimg

Return to advanced search

Re: CheckRes()

... activo SetResDebug(.t.), se genera el res.log con este contenido 487194999 FONT /*,-+0,*0/ FONT /-.,),-,/, FONT /(,./)+'0 BMP /,+'.(/.(- BMP -> ResizeImg /*)/0)).) FONT /'/..*)*(+ BMP (+,+(/*(. BRUSH /0).*(*''( BRUSH /*,-//)-/. BRUSH /.),0/((** BRUSH 1729110706 BRUSH /.),)-/)'( BMP 1577395166 ...
by russimicro
Tue Mar 10, 2020 8:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CheckRes()
Replies: 22
Views: 3794

Re: Class TTITLE ( images ) possible without Freeimage.dll ?

... Uwe :?: itio's possible change the METHOD LoadBitmap( cnName ) I thinkg insert hBmp := FW_ReadImage( nil, ::cImage )[ 1 ] instead of hBmp = ResizeImg( cnName, ::nWidth, ::nHeight ) but I not tried
by Silvio.Falconi
Wed May 22, 2019 5:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Class TTITLE ( images ) possible without Freeimage.dll ?
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: 6358

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 ...
by nageswaragunupudi
Wed Nov 04, 2015 10:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bad quality with GIF (and GDI+)
Replies: 84
Views: 9936

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

Re: Bug in ResizeImg()

Thank you. But I think that using AlphaBlend() features would be much more efficient. I'm implementing the required changes.

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

Re: Bug in ResizeImg()

ok. From hbitmap Function GdiResizeImage( hImg , nwidth, nHeight) local  hGdiBmp:= GdiPlusCreateImageFrom32hBitmap( hImg ) LOCAL  gdinewhBmp := GdiPlusImageResize(hgdibmp, nWidth, nHeight )  LOCAL  hImg2 := GdiPlusCreateHBitmapImage( gdinewhBmp )    GdiPlusImageDispos...
by mastintin
Thu Oct 29, 2015 8:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in ResizeImg()
Replies: 25
Views: 2789

Re: Bug in ResizeImg()

Antonio,

Antonio Linares wrote:Enrico,

I already sent you function ABPaint() source code by email


Thank you. I'll study it.

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

Re: Bug in ResizeImg()

mastintin wrote:If you go to call gdi + pictures, you redimensionaleas also from GDI + ...


Thank you, but doing so the file must be reloaded. I would want to resize an already loaded hBmp. Is it possible?

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

Re: Bug in ResizeImg()

Enrico,

I already sent you function ABPaint() source code by email
by Antonio Linares
Thu Oct 29, 2015 7:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in ResizeImg()
Replies: 25
Views: 2789

Re: Bug in ResizeImg()

... hDC, nWidth, nHeight, lImg )    LOCAL hImg := LoadresizedImage( cFile ,nWith, nHeight) //   LOCAL hImg2   // IF lImg    //    hImg2 = RESIZEIMG( hImg, nWidth, nHeight )   // ELSE    //    hImg2 = RESIZEBMP( hImg, nWidth, nHeight )   // ENDIF    ABPAINT( hDC, 0, 0, hImg, 255 )  ...
by mastintin
Thu Oct 29, 2015 6:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in ResizeImg()
Replies: 25
Views: 2789

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

Re: Bug in ResizeImg()

Antonio, FWH function ABPaint() just calls Windows API function AlphaBlend() It seems that AlphaBlend() can resize the image: https://msdn.microsoft.com/it-it/library/windows/desktop/dd183351(v=vs.85).aspx Can you add two parameters with nWidth and nHeight (or can send me the sou...
by Enrico Maria Giordano
Thu Oct 29, 2015 2:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in ResizeImg()
Replies: 25
Views: 2789

Re: Bug in ResizeImg()

Antonio,

I tried GDIPLUSIMAGERESIZE( hBmp, nWidth, nHeight ) but it GPFs. What am I doing wrong?

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

Re: Bug in ResizeImg()

Enrico,

I am afraid that we can't (maybe using GDI+?) as FWH function ABPaint() just calls Windows API function AlphaBlend()
by Antonio Linares
Thu Oct 29, 2015 1:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in ResizeImg()
Replies: 25
Views: 2789
Next

Return to advanced search