Link to home
Start Free TrialLog in
Avatar of marakr
marakr

asked on

problems with bitmap picture

Hello,
I'm developing an application in MSVC 4.0 and Windows95 environment.  When I run my application, there should be an open picture.  I've scanned two pictures; one for 16 colors and other one for 256 colors.  They look ok in the photo paint software but when they appear in my open picture(with the appropriate display configuration), they look ugly, without the same resolution and with different colors.  The code inside my program is ok and I think it's not an MFC doubt.  Although, I don't have a clue of the solution of this problem.  
Avatar of binkzz
binkzz

That's because your actual program takes up more graphical space
than it is actually allowed to. This will cause any images with
a lot of colours to show up with some colours to really strangev
values. The best way to get round this is to only use about 200
colours in a 256 colour bitmap, though 16 should be allowed to
stay 16.

If you need any more help or an example, come back to me again.

Tom
Avatar of marakr

ASKER

I've implemented your suggestion but it didn't work.  I've used the Photo Paint software and clicked on "convert to" option in the image menu, choosed 256 colors with optimized option and typed less colors than 256 (more exactly 200 colors).
The picture was still strange; it seems that some colors where completly changed.  Is is something related to the palette order in the MSVC++ software?  Even when I convert the picture to gray colors, it looks strange...

ASKER CERTIFIED SOLUTION
Avatar of kraphics
kraphics

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You should also have a function to handle the color palette of the image you read in.............