Metro-Bitmap with enhanced Quality on resize

Metro-Bitmap with enhanced Quality on resize

Postby ukoenig » Wed Jun 27, 2012 1: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

Image

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

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests