ResizeBmp(....., .T. ) changes Image-Brightness ?

ResizeBmp(....., .T. ) changes Image-Brightness ?

Postby ukoenig » Thu Feb 16, 2012 2:27 pm

Hello,

including ResizeBmp in ABPaint like :

The Original uses :
ABPaint( hDC, 10, 10, oAlpha:hBitmap, 255 ) // Left / Top

Resized uses the Function :
FUNCTION LOGO1()
LOCAL hDC, oAlpha

hDC := oWnd:GetDC
DEFINE IMAGE oAlpha FILENAME c_Path + "\Images\" + cWLogo
nWidth := oAlpha:nWidth
nHeight := oAlpha:nHeight
ABPaint( hDC, 10, 10, ResizeBmp( oAlpha:hBitmap, nWidth * 0.7, nHeight * 0.7, .T. ), 255 ) // Left / Top
oAlpha:End()
ReleaseDC(hDC)

RETURN NIL


Maybe it is not possible to use it, to resize a BMP of ABPaint ?

Using .T., I noticed a change in Image-brightness.
With .F. the Colors are OK but the quality gets lost .
Is there a Solution to fix this problem ?

Tested with Image-background

Image

Gradient

Image

and Brush

Image

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 83 guests