Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

problems with bitmap picture

Posted on 1998-09-04
4
Medium Priority
?
203 Views
Last Modified: 2013-12-03
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.  
0
Comment
Question by:marakr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Expert Comment

by:binkzz
ID: 1112377
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
0
 

Author Comment

by:marakr
ID: 1112378
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...

0
 

Accepted Solution

by:
kraphics earned 400 total points
ID: 1112379
Check the Color driver of the Monitor you use to display the image.
The driver must be 256 to view an image with 256 colors.
Some times changing the number of colors after the initial save of a scanned image will also cause strange effects.

I scan most of my own pictures, and I save them initialy for the way I think the driver will be on the monitor.

The software you use to re-save an image will make a big difference on the re-saved image.

GWS (Graphic WorkShop) is a execelant software.

I also create viewers in MSVC 5.0.

MSVB is also good........
0
 

Expert Comment

by:kraphics
ID: 1112380
You should also have a function to handle the color palette of the image you read in.............
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question