Corrupt bitmaps in OI 4.0.2 (OpenInsight 32-bit Specific)
At 02 DEC 2002 03:02:02PM Colin Bramich wrote:
We've sent a demo (OI 4.0.2) to a potential customer and they are complaining about corrupt button bitmaps when running under Windows XP.
The bitmaps are loaded at runtime with Set_Property (not registered in the repository). They are 144x72 pixels (2 images: for a square 72 pixel button) in 16 colours: 10 such bitmaps are being displayed. Well, some of them are being displayed; others are corrupted.
The buttons look fine here at the office under Windows 2000 and everything else I have managed to try running the demo on.
Anyone else noticed anything similar ? Is this an XP thing ?
Thanks,
Colin
At 03 DEC 2002 04:43AM Colin Bramich wrote:
I should add that the bitmaps look fine in Explorer under XP. It is during the process of loading them onto a push button that the corruption is happening.
Colin
At 03 DEC 2002 05:57AM Oystein Reigem wrote:
Colin,
I haven't noticed any special problems with bitmaps on OI 4.x and XP. But I haven't got any 16 colour bitmaps. 16 colours is rather old-fashioned. If you mail me your bitmap at I can do a test.
What happens if you convert your bitmap to 256 colours or 24-bit?
- Oystein -
At 03 DEC 2002 06:21AM Oystein Reigem wrote:
Colin,
Managed to find a real 16-colour BMP (i.e, a BMP with bit depth 4). Or rather I managed to find a program able to make one. So I made one and did a test. But I can't reproduce your (client's) problem.
Exactly how does this corruption show itself? Is the bitmap still recognizable? Or does the standard bitmap show instead? Or is the result something different again?
You say some of the 16-colour bitmaps do show. Are they somehow different? Some difference in file format or flavour? Are all the 16-colour images BMP files? Do they reside in different folders? Resize versus Clip? And are you sure all the files are present?
![]()
- Oystein -
At 09 DEC 2002 12:11PM Colin Bramich wrote:
Hi Oystein,
Simple stuff first… yes the bitmaps are there because the guy can view them in explorer.
They appear as a non-bitmap image - the "open window and half a door". They are 16-colour BMP (bit depth of 4). Strange thing is, only some of them do. They are all clipped (in fact, designed to be the same size as the pushbutton).
I am going to try converting to 256 colour and see if this makes a difference. 16 were used originally because they are generated from simple clip-art files with few colours.
Oh and this only happens in XP.
Thanks for your interest.
Colin
At 09 DEC 2002 03:23PM Oystein Reigem wrote:
Colin,
Are you 100% sure you got the file names right in your Set_Property statements? Since the images work on your own PC I assume they can't be totally wrong, but I can think of one possible mistake - a mix of relative and absolute paths where the absolute paths don't fit the drive and folder names on the client's system.
(I assume you've verified all the image files really are present on the client's system.)
In case the problem really has got something to do with XP: Has the customer got a non-XP PC he can try the demo on?
- Oystein -