OS/2, eCS & ArcaOS - Technical > Applications
PMView - converting ICO to OS/2 BMP...background options?
Dariusz Piatkowski:
I need to take a couple of ICO (icon) files and convert them to an OS/2 BMP format. Seems easy enough, right?
Well, my problem is that doing the conversion does not preserve the ICON's background transparency...why not?
Basically, the converted images all have WHITE background, which I need to avoid. I do know the actual colour of the background I need, but I would rather have a transparent background instead.
Any ideas? Is this caused by the OS/2 BMP format not supporting the alpha channel? (https://www.axialis.com/tutorials/tutorial-misc002.html)
So if transparent BMP is off the table, what's the easiest way for me to apply a particular colour as background to an ICO file so it's still preserved in the BMP image itself?
Martin Iturbide:
Hi
--- Quote from: Dariusz Piatkowski on January 06, 2021, 03:48:13 am ---Well, my problem is that doing the conversion does not preserve the ICON's background transparency...why not?
--- End quote ---
In my experience I have never seen a BPM file with transparency, but I may be wrong.
Is there a specific need for the need of BPM format with transparency? Can you use PNG ?
Regards
Dave Yeo:
Load them in the icon editor and save with bmp as the suffix?
Dariusz Piatkowski:
Hi Dave,
--- Quote from: Dave Yeo on January 06, 2021, 05:15:35 am ---Load them in the icon editor and save with bmp as the suffix?
--- End quote ---
Well, you'd think this should not be a problem, right? Alas, no-go, the IconEditor I'm using here will not convert to another format (it's the Jan-2016 version one).
Dariusz Piatkowski:
Hi Martin,
--- Quote from: Martin Iturbide on January 06, 2021, 04:52:14 am ---...Is there a specific need for the need of BPM format with transparency? Can you use PNG ?...
--- End quote ---
I'm using Visual SlickEdit as my development IDE. Beyond something like Watcom, Borland C++ or IBM's VACPP, this is by far the most flexible way to cater to not just multiple C/C++ configurations, but also multiple languages.
As you can imagine our version (4.0b - c1999) is a bit old, and that only handles BMP images which can be used to customize the numerous IDE toolbars with. The newer versions on other platforms have switched to ICO images and PNG following that, we are stuck with BMP, and it has to be the OS/2 version as opposed to the Win one as well.
So I'm simply trying to add a few more customized options to the IDE's Toolbar, stuff that reflects our OS/2 specfic things. Now that I'm trying to do some updates to DISKIO and possibly porting stuff like fstrim, I figured I would bulk-up my IDE with the stuff I otherwise just used to jump to the CLI for, thus the need.
The good news is that the Toolbar has a consistent single-colour background, so if the BMP transparency is a no-go I'm just going to fill-in the otherwise transparent ICO background with the matching colour and save that as a BMP image.
Navigation
[0] Message Index
[#] Next page
Go to full version