FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ResizeBmp(....., .T. ) changes Image-Brightness ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
ResizeBmp(....., .T. ) changes Image-Brightness ?
Posted: Thu Feb 16, 2012 02: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



Gradient



and Brush



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