FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Metro-Bitmap with enhanced Quality on resize
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Metro-Bitmap with enhanced Quality on resize
Posted: Wed Jun 27, 2012 01:01 PM
Hello,

I tested the quality of Metro-bitmaps on resize.
with
PRINT.png => 220 x 220 resized to 50 x 50
and OLGA1.jpg



I changed in => METHOD LoadBitmaps( uBmp ) CLASS TMetroBtn
hBmp := ResizeImg( ( hBmp1 := hBmp ), ::nBmpWidth, ::nBmpHeight )

to :
hBmp := ResizeBmp( ( hBmp1 := hBmp ), ::nBmpWidth, ::nBmpHeight, .T. )

The difference using a JPG-file ( screenshot enlarged to show the image-structure ) :



it seems to be a better quality-result, like You can see on the screenshot.

Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion