Solved

problems with bitmap picture

Posted on 1998-09-04
4
164 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
  • 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 200 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now