issue-#82 Bitmap Paint Quality

User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

issue-#82 Bitmap Paint Quality

Post by Josef Templ »

I don't see any difference when applying the proposed fix.
I also don't see any ugly results when zooming bitmaps in BB1.6.
luowy, please describe in more detail what you observed and
give us an example of a bitmap where the observation can be reproduced.

- Josef
luowy
Posts: 234
Joined: Mon Oct 20, 2014 12:52 pm

Re: issue-#82 Bitmap Paint Quality

Post by luowy »

Jesof

open the attached file with the unpatched and patched BB

unpatched:
Image

patched:
Image

the diff is obvious.
Attachments
pic2.jpg
(62.54 KiB) Downloaded 3 times
pic.jpg
(75.88 KiB) Downloaded 3 times
pic0.rar
(634.96 KiB) Downloaded 248 times
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#82 Bitmap Paint Quality

Post by Josef Templ »

Thanks. I can see it now. Definitely an improvement.

If the bitmap is pasted as Metafile or as OLE Object, it still has the old rendering.
Is there anything we could do about those cases?

- Josef
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#82 Bitmap Paint Quality

Post by Robert »

I noticed several years ago that when I tried to scale Bitmaps using WinApi the results were very poor. If I scaled them in Word the results were much better, so the story is more complicated that just saying "Rubbish Microsoft software".

I now use the FreeImage Dll accessible through an interface available on the CPC website; the results are much better.

Robert
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#82 Bitmap Paint Quality

Post by Ivan Denisov »

I am also using FreeImage as Robert for such cases. However the patch is simple and can be applied.
luowy
Posts: 234
Joined: Mon Oct 20, 2014 12:52 pm

Re: issue-#82 Bitmap Paint Quality

Post by luowy »

Josef Templ wrote: If the bitmap is pasted as Metafile or as OLE Object, it still has the old rendering.
Is there anything we could do about those cases?
give a example,please,I don't know what you mean。

the problem what I encounted is: the picture is gif format,though it can pasted to BB doc,
but the background is dark(the browser draw it whith white color)! is that your mean?
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#82 Bitmap Paint Quality

Post by Josef Templ »

I used your example picture, opened it in Microsoft Paint, selected a rectangle,
copied it into the clipboard, and when I paste it to BlackBox I have several options
when I use Edit->Paste Special
- Unknown Type (results in an OLE Object)
- Picture (Bitmap)
- Picture (Metafile)

Only if I paste it as 'Picture (Bitmap)' I get the improved rendering from your fix
when I zoom out.

- Josef
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#82 Bitmap Paint Quality

Post by Josef Templ »

Please find the changes proposed by luowy at
http://redmine.blackboxframework.org/pr ... 71e8fed600.

- Josef
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: issue-#82 Bitmap Paint Quality

Post by Zinn »

I still have problem with copy and paste of bitmaps.
I can copy the picture here from the website and paste them into word or paint but not into BlackBox. There nothing happens.
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#82 Bitmap Paint Quality

Post by Josef Templ »

I did it always in the following way:
1. make a screen shot by pressing Ctrl-Print
2. Paste the clipboard (screen) to Paint
3. mark a rectangle in Paint and Copy it to the clipboard
4. use 'Edit->Paste Special...' for pasting the cliboard into a BlackBox
text with a selectable type: choose 'Picture (Bitmap)'

- Josef
Post Reply