Solved

problems with bitmap picture

Posted on 1998-09-04
4
188 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 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

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

Suggested Solutions

Title # Comments Views Activity
Bold Courier in RichEditControl 6 120
chcp 65001 File encoding 66 324
crystal report check box and wingdings font 7 263
Can I print examples of all of my installed fonts? 6 57
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …
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…

739 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