Page 1 of 1

issue-#114 import for 1-bit bitmap

Posted: Thu May 19, 2016 5:30 pm
by Ivan Denisov
If you import 1-bit bitmap images, they take very much size after saving. This is because they are converting while importing to 32-bit images.
To improve documentation some images need to be replaced. So issue #100 depends from this issue.

The example:
test1.bmp.zip
(2.49 KiB) Downloaded 296 times
The solution:
http://redmine.blackboxframework.org/pr ... 80743c8d8a

Version to try:
http://blackboxframework.org/unstable/i ... b1.533.zip

Re: issue-#114 import for 1-bit bitmap

Posted: Thu May 19, 2016 8:46 pm
by Robert
Is this a bug, or a new feature?

By coincidence I had a bitmap problem today. I was reading some .pngs using FreeImage, and was expecting a color depth of 24 bits in 32 bit words. But some of the high order bits were being set, which confused my software. (I clear these bits deliberately now.)

But it raises the question: Does / can BlackBox support transparency with bitmaps? It would certainly be useful.

Robert

Re: issue-#114 import for 1-bit bitmap

Posted: Fri May 20, 2016 11:15 am
by Ivan Denisov
Robert wrote:Is this a bug, or a new feature?
It makes some wrong behavior. However I am not sure, that it is a bug.
If you and others think, that is is a feature, we can leave this issue for 1.8 version.

Re: issue-#114 import for 1-bit bitmap

Posted: Fri May 20, 2016 11:35 am
by Josef Templ
Please clarify what this issue is about.

I have loaded the test bitmap and saved it but there was no size explosion.
I got a size explosion only after converting it from OLE to Picture (Bitmap),
i.e. into a different format, using Edit->Paste Special...
There was no size explosion when converting it to Picture (Metafile).

- Josef

Re: issue-#114 import for 1-bit bitmap

Posted: Fri May 20, 2016 12:54 pm
by Ivan Denisov
Josef, thanks for your check.
This bug appears only with Wine... so there is no big need to fix this. I can do all the manipulations on windows.
I am closing this!