Project

General

Profile

Actions

Bug #82

closed

improving Bitmap zooming quality

Added by W. Luo about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/29/2015
Due date:
% Done:

0%

Estimated time:

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 #1

Updated by J. Templ almost 10 years ago

  • Subject changed from Bitmap Paint Quality to improving Bitmap zooming quality
  • Target version set to 1.7
Actions #2

Updated by J. Templ almost 10 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF