issue-#114 import for 1-bit bitmap

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

issue-#114 import for 1-bit bitmap

Post 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 229 times
The solution:
http://redmine.blackboxframework.org/pr ... 80743c8d8a

Version to try:
http://blackboxframework.org/unstable/i ... b1.533.zip
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

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

Post 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
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

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

Post 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.
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

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

Post 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
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

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

Post 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!
Post Reply