Microsoft KB Archive/117729

Matching Windows Palette Custom Colors to PowerPoint Palette

PSS ID Number: Q117729 Article last modified on 05-16-1998

windows:3.0,4.0,4.0a,4.0c

WINDOWS

================================================================ ==

The information in this article applies to:

 == PowerPoint for Windows, versions 3.0, 4.0, 4.0a, 4.0c == 

= SUMMARY =

If a custom background color is created in Microsoft Graph, a slide background color can be created to match it. The three-digit RGB values from Graph can be multiplied by 256 to obtain the five-digit RGB values for the PowerPoint palette. Only the RGB values need to be matched; the HSL values will be automatically calculated.

As a result, if you edit a color in Graph and give it the following values

Red: 90 Green: 130 Blue: 120

the equivalent values to use in PowerPoint’s More Colors dialog box are:

Red: 23040 (90x256) Green: 33280 (130x256) Blue: 30720 (120x256)

This conversion will also work any time you want to duplicate a custom color created in any application that uses a 24-bit color addressing scheme in PowerPoint.

= MORE INFORMATION =

The PowerPoint palette information is stored in 48-bit format so that it is compatible with the way color is stored on the Macintosh. Graph uses the Windows palette, which stores color in 24-bit format. In 48-bit format, the RGB values are each represented by a 16-bit number. In 24-bit format, they are represented by an 8-bit number. When a 16-bit color is translated to an 8-bit color, the least significant 8 bits are truncated. When an 8-bit color is translated to a 16-bit color, zeroes are entered for the least significant 8 bits. This is equivalent to multiplying and dividing by 100 hex, or 256 decimal, as the numbers are displayed in decimal format in the Custom Colors dialog box.

When dividing a five-digit color number by 256, truncate the result to its integer value to get the three-digit color number.

This color matching calculation is not necessary when using PowerPoint for the Macintosh because the Macintosh version of the Graph utility also uses 48-bit color. When a graph is brought from the Macintosh platform to the Windows platform, the graph color information is recalculated as stated above.

For additional information, please see the following article(s) in the Microsoft Knowledge Base:

ARTICLE-ID: Q86446 TITLE : Equivalent Values for Genigraphics Colors: RGB

ARTICLE-ID: Q86445 TITLE : Equivalent Values for Genigraphics Colors: CMYK

ARTICLE-ID: Q68563 TITLE : Values for Hue, Saturation, and Luminance Change Slightly

Additional query words: power point winppt 4.00a 4.00c graph msgraph ====================================================================== Keywords : kbinterop Version : windows:3.0,4.0,4.0a,4.0c Platform : WINDOWS Hardware : x86 Issue type : kbinfo ============================================================================= Copyright Microsoft Corporation 1998.