ACC1x: Bitmap May Not Be Displayed Correctly

Last reviewed: May 28, 1997
Article ID: Q95448
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

SYMPTOMS

A bitmap that is displayed correctly in another application is not displayed correctly in Microsoft Access.

CAUSE

When Microsoft Access starts, it loads a fixed 256-color palette. This palette supports the most common colors used in bitmaps and metafiles. All pictures and OLE Objects displayed in Microsoft Access are mapped to this palette.

STATUS

This behavior is by design.

MORE INFORMATION

By using a fixed palette, Microsoft Access can display multiple pictures and OLE Objects on the screen at one time without each new object affecting the screen colors.

However, Microsoft Access can display multiple bitmaps at one time. Therefore, because Windows can use only one palette at a time, Microsoft Access uses a palette that usually is common to all the bitmaps Microsoft Access might display.

That is why bitmaps and metafiles displayed in Microsoft Access may appear to have a different color than when they are displayed in the application in which they were created. Because Windows can use only one palette at a time, each object Microsoft Access displays must be mapped to the fixed color palette loaded by Microsoft Access. Microsoft Windows determines this mapping. You cannot modify it.

Steps To Reproduce Behavior

  1. Start Microsoft Paintbrush (PBRUSH.EXE).

  2. Choose Image Attributes and select Black And White under the Color option.

  3. Create a simple picture using several different shades of gray.

  4. Choose Save from the File menu.

  5. Under the Save File As Type option, select 256 Color Bitmap.

  6. Start Microsoft Access, and open the sample database NWIND.MDB.

  7. Open the Categories form in Form view.

  8. Select the Picture Control.

  9. Choose Insert Object from the Edit menu, and click the File button.

  10. Choose the file you just created in Microsoft Paintbrush, and click the OK button. Note that the file loads as a solid black picture. Microsoft Paintbrush uses a custom palette to offer a variety of shades of gray. But Microsoft Access does not have the ability to load or reproduce this custom color palette. Therefore, it requests that Windows map each of the colors in the bitmap to the custom palette that was loaded when Microsoft Access started.

This example is extreme. In most cases the color change will be slight.


Additional query words: appearance graphic poor bad
Keywords : FmrColr kbusage
Version : 1.0 1.1
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.