Update for DC_BitMapDraw
Posted: Wed Dec 01, 2010 5:58 am
Roger,
I found a small error in function DC_BitMapDraw of file _dcfunct.prg (eXpress 19254). In some situations the AUTOSCALE of DCBITMAP did not work correctly. If you agree, please replace the following lines:
Old: lines 676-686
New:
See the effect in the attached example.
Daan
I found a small error in function DC_BitMapDraw of file _dcfunct.prg (eXpress 19254). In some situations the AUTOSCALE of DCBITMAP did not work correctly. If you agree, please replace the following lines:
Old: lines 676-686
Code: Select all
IF lAutoScale
IF nAspect > 1
IF nAspect > aTarget[3] / aTarget[4]
aTarget[4] := aTarget[3] / nAspect
ELSE
aTarget[3] := aTarget[4] * nAspect
ENDIF
ELSE
aTarget[3] := aTarget[4] * nAspect
ENDIF
ENDIF
Code: Select all
IF lAutoScale
IF nAspect > aTarget[3] / aTarget[4]
aTarget[4] := aTarget[3] / nAspect
ELSE
aTarget[3] := aTarget[4] * nAspect
ENDIF
ENDIF
Daan