Push Buttons and Paint Shop Pro (OpenInsight Specific)
At 23 DEC 1999 06:44:33PM Tami Santos wrote:
When I use Paint Shop Pro to create my push button bitmaps for MDI windows, some outside lines of my image disappear in run time. They're 6 image bitmaps and are 24 bit. I'm wondering if the size of the file is too large for OI? How can I correct this problem? Thank you!
At 23 DEC 1999 07:39PM Oystein Reigem wrote:
Tami,
My guess is you're right about the file being too large for OI. I remember I had a pushbmp with a 1.5 meg RGB bmp. It wouldn't show at all (i.e, I got an ordinary button). It helped when I changed from RGB (24 bit) to indexed colour (256 colours or less) and the size came down to approx half a meg.
I can't tell you exactly how you do that in PSP, but in PhotoShop you do Image | Mode | Indexed Color… and then select a suitable palette. You might lose colours, but in PhotoShop at least one can select an "Adaptive" palette and which will contain more than 200 of the colours most used in the image.
- Oystein -
At 24 DEC 1999 12:22AM Don Bakke wrote:
Tami,
I suspect your button control is not sized correctly to show an entire BMP frame. Remember, most image/paint programs start at position 0 (zero). The size of OI controls starts at 1. Therefore, you might have gotton the bottom and/or right positions from PSP and sized your control with those values which would make it a pixel too small. If you want to send the image to the e-mail address below I'll be happy to confirm if the image is really the problem.
At 06 JAN 2000 04:40AM Colin Rule wrote:
There is a problem with OIs display of BMPS cutting out vertical lines every so many pixels.
The image appears perfect in Paint etc and on the Form Designer but when the form is run it corrupts.
This was reported some time ago to Revtech by myself.
We use OI 3.6.1.
Since it was reported I did notice in some later versions, I think it may be 3.7.2 that this problem was resolved, but I have yet to check.
It may be worth looking though the last few release upgrade notes on this subject.
At 06 JAN 2000 06:22AM Oystein Reigem wrote:
Colin,
If you choose Resize instead of Clip, and your control is slightly smaller than your image, you can get the effect you describe. Of course then you would see the effect already in Form Designer. But perhaps there was a bug that at runtime sometimes resized images instead of clipping them???
(Or perhaps a bug where the image got resized to a slightly different size at runtime??????)
But I must say I have used OI 3.61 for a very long time without ever having the problem you describe. It would be interesting to see an example.
- Oystein -
At 07 JAN 2000 08:07AM Colin Rule wrote:
Oystein
Send me your Email address to [email protected]
I will send you a bitmap which has this effect.
Colin