Actions
Bug #82
closedimproving Bitmap zooming quality
Start date:
10/29/2015
Due date:
% Done:
0%
Estimated time:
Forum topic:
Description
BB can draw bitmap easily into a textview ,
but the qulality is bad when it is zoom in or out.
e,g:
1,open a empty window(textview);
2,past a picture to it;
3,drag the view's border to scale it;
4,then You will find the picture is drawn ugly.
my patch is add two line code at HostPorts.Rider.DrawBitmap:
...
>>res := WinApi.SetStretchBltMode(dc, WinApi.HALFTONE); <<add this line
>>res:=WinApi.SetBrushOrgEx(dc, 0, 0, NIL); <<add this line
res := WinApi.StretchBlt(dc, x DIV u, y DIV u, w DIV u, h DIV u, bmdc, 0, 0, bw, bh, copy)
....
Actions