Skip to main content

[archive] 24 bit bitmaps

  • January 13, 2009
  • 12 replies
  • 2 views

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?

12 replies

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
There is a transparent color property for bitmaps. Have you tried using AcuBench add a bitmap to a screen then use the transparent color property?

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
There is a transparent color property for bitmaps. Have you tried using AcuBench add a bitmap to a screen then use the transparent color property?

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
Did you ever figure this out? :confused:

When a 256 color (or less) bitmap is put on a button it seems that the grey color is inherently transparent, but putting a 24bit bitmap on a button, this is no longer the case. Anyway to achieve transparency with 24bit bitmaps when placed on buttons/toolbars etc?

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
Did you ever figure this out? :confused:

When a 256 color (or less) bitmap is put on a button it seems that the grey color is inherently transparent, but putting a 24bit bitmap on a button, this is no longer the case. Anyway to achieve transparency with 24bit bitmaps when placed on buttons/toolbars etc?

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
I don't know if this changed in Acu 8, we still use 7.

But in the Manual "3.7.1 Drawing the Image" is a Note


Note: The color transformation described above occurs only for bitmaps stored in 16-color or 256-color format. Bitmaps stored in 24-bit format (true color) do not contain an internal palette. As a result, there is no efficient way of performing the transformation described above. Bitmaps in 24-bit format will be displayed with their colors unchanged.

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
Thanks Frosti, I messed around with several different "paint" applications and it seems I cannot make these things work properly even if I convert them down to 256 colors and specifically make the background color 192,192,192. Even if I save the image out as a 16 or 256 color bmp file from paintshop pro it will look decent and the background is 192,192,192. but it seems to mess with the default pallette somehow and they are not transparent.

All I can make work consistently is Microsoft Paint when you use ONLY the default color pallette which is very limited and makes my images look like junk.

If Acu supported 24-32bit with 'real' transparency we wouldn't have these issues... :-(

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
Thanks Frosti, I messed around with several different "paint" applications and it seems I cannot make these things work properly even if I convert them down to 256 colors and specifically make the background color 192,192,192. Even if I save the image out as a 16 or 256 color bmp file from paintshop pro it will look decent and the background is 192,192,192. but it seems to mess with the default pallette somehow and they are not transparent.

All I can make work consistently is Microsoft Paint when you use ONLY the default color pallette which is very limited and makes my images look like junk.

If Acu supported 24-32bit with 'real' transparency we wouldn't have these issues... :-(

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
You can create nice images and modify the default palette and it works.

Sample Pics with Transparent Buttons.
The RealVNC Pic is also a Transparent Button.

I use a very old Version from FW to create the Buttons.
"Macromedia Fireworks 4".

The only offer i can make is that you send me 1 or 2 of your pics and i check with Fireworks and my Settings to get it transparent.
What picture-format ist the source? png?

David

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
You can create nice images and modify the default palette and it works.

Sample Pics with Transparent Buttons.
The RealVNC Pic is also a Transparent Button.

I use a very old Version from FW to create the Buttons.
"Macromedia Fireworks 4".

The only offer i can make is that you send me 1 or 2 of your pics and i check with Fireworks and my Settings to get it transparent.
What picture-format ist the source? png?

David

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
Thanks Frosti,

After some more messing around I realized the background of the bitmaps were 198,198,198 and not 192,192,192. So changing this when I'm using paintshop pro resolved my issue.

Thanks again for your responses... It's still too bad we have to convert every image down from 24bit to 256 colors but at least it works.

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
oh sorry, i didn't check your color-values :(

in the acu-manual "Drawing the Image" is also a Table with the Values which are translated to transparent color.


[b]Bitmap Color  RGB Values       System Color Used[/b]
Black           0,   0,   0    Button Text
Dark gray     128, 128, 128    Button Shadow
Light Gray    192, 192, 192    Button Face
White         255, 255, 255    Button Highlight
Blue            0,   0, 255    Selected Item Background
Magenta       255,   0, 255    Window Background

[Migrated content. Thread originally posted on 13 January 2009]

We have designed some new nice bitmaps as a tool-bar in a non-Cobol-application and want to use them in our Cobol-application as well. The toolbar has a transparent background and is 24-bits (color-depth). Is it possible to achieve the transparent-function in AcuCobol?
oh sorry, i didn't check your color-values :(

in the acu-manual "Drawing the Image" is also a Table with the Values which are translated to transparent color.


[b]Bitmap Color  RGB Values       System Color Used[/b]
Black           0,   0,   0    Button Text
Dark gray     128, 128, 128    Button Shadow
Light Gray    192, 192, 192    Button Face
White         255, 255, 255    Button Highlight
Blue            0,   0, 255    Selected Item Background
Magenta       255,   0, 255    Window Background