Solved

problems with bitmap picture

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Making a logo and lettering in GIMP 18 86
Where can  I find a  barcode font that is either free or reasonably priced? 8 74
VCD to mp4 11 158
File conversion question 5 105
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 second Micro Tutorial in the series,  viewers will learn more basic shortcuts and functions of Illustrator. In this tutorial you will learn about the eyedropper tool, zoom , ellipses and more.
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…

770 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