Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

pictures with 256 color only

Posted on 2001-06-22
12
Medium Priority
?
197 Views
Last Modified: 2012-05-04
Is there a way i can follow so i can use pictures with true color inside the visual basic programs , when i try to use a true color pictures the colors become bad , is that normal ? Thanx
0
Comment
Question by:ashraf_t
[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
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 3

Expert Comment

by:RodStephens
ID: 6218143
If your system is set up to run only 256 colors, then yes any higher color mode picture you display must be converted to 256 colors. Sometimes that can look bad.

You can change to a higher color mode using the Control Panel's Display applet. For instructions, go to:

    http://www.vb-helper.com/gethigh.htm
0
 

Expert Comment

by:ingem
ID: 6218279
I think, for more precise rendering your true color images and pictures in in 256 colors mode you must use custom PaletteMode. See details in MSDN an article "Managing Multiple Color Palettes". Here is a fragment:
"If you need more precise control over the actual display of colors, you can use a 256-color image to define a custom palette. To do this, assign a 256-color image (.bmp, .cur, .ico, .dib, or .gif) to the Palette property of the form and set the PaletteMode property to Custom. The bitmap doesn?t have to be very large; even a single pixel can define up to 256 colors for the form or picture box. This is because the logical palette of a bitmap can list up to 256 colors, regardless of whether all those colors appear in the bitmap."
And here is an example of appropriate code:

' Assign the palette from Image1 to the form.
Form1.Palette = Image1.Picture
' Use the Custom mode.
Form1.PaletteMode = vbPaletteModeCustom
0
 

Author Comment

by:ashraf_t
ID: 6220104
I did what u said ingem but the no change in colors !!!!
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6220830
Follow RodStephens comment.
Your system is displaying 256 color only, change it.
0
 

Author Comment

by:ashraf_t
ID: 6221802
That is not true my system is true color
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6221982
Strange thing, are you sure that those pictures maintains true color property?
Maybe, those images have been changed.
Picture Box and image controls can display true color values, i think.
0
 

Expert Comment

by:ingem
ID: 6223142
How are your pictures looked out in any Graphic editor on your computer. Are they in normal colors?
0
 

Author Comment

by:ashraf_t
ID: 6245873
Yes any graphic programe show the colors very normal
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6246054
Just for sure, what version of VB are you using?
0
 

Author Comment

by:ashraf_t
ID: 6300302
it is visual basic 5
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 6300898
So, it is enable to show you pictures more than 256 color depth!
At this moment, what depth is your color, 16 bit or 24?
If you are in 16 and pictures are in 24 you got some degrade color pictures. Same is true if you are in 256 and pictures are in 16/24, of course.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6346203
So, that's all?
I can't believe!
0

Featured Post

Industry Leaders: 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

598 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