Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ContextCapture | Descartes | Pointools | Orbit
  • Product Communities
ContextCapture | Descartes | Pointools | Orbit
ContextCapture | Descartes | Pointools | Orbit Wiki Raster image background color different in DWG and DGN Files
    • Sign In
    • +Reality Modeling Wiki
    • +Bentley I/RAS B
    • +Bentley LumenRT
    • +Bentley Pointools
    • +ContextCapture -
    • -Descartes and ContextCapture Editor(deprecated product)
      • +Installation
      • +Licensing
      • +Point Clouds
      • +Raster Editing
      • Raster Grid
      • -Raster Manager
        • Attach a Map Layer from a WMS Server
        • Bentley Descartes - Image Draping
        • Contrast Brightness cannot be used with Monochrome raster images
        • How to Attach Pages in Multi-Page PDF File in MicroStation XM and V8i
        • INGR TIFF Images Being Attached in the Wrong Location
        • Raster image is currently reprojected message when trying to clip a raster
        • Raster images skewed going from IRasb V7 to Descartes V8i
        • -Raster Product TechNotes And FAQs
          • Attaching an ECW image get message “We cannot create valid coordinate system file”
          • Capture Google Earth Image Using Google Earth Pro Version 7.1.2.2041
          • DGN with raster images attach crash, hang or raster image does not display
          • How to Attach an Image With World/Sister file units in lat/long coordinates
          • Key-In to set raster image Inherit GeoCS to “Not Inherited”
          • Out of range exception – [14] - Raster Convert Error
          • Raster Could Not Be Reloaded in Read/Write Mode
          • Raster image background color different in DWG and DGN Files
          • Raster Image Being Attached in the Wrong Location
          • Raster Image Not Displaying and Shows Gray in Raster Manager View Bar
          • +Raster Manager [FAQ]
          • Rasters are red in the raster manager list. How can I reload them ?
          • Reprojecting Images to a Different GCS
          • Save Raster Image Attachment Location
          • Unable to attach PDF images in MicroStation V8 2004 Edition
          • Use An Environment Variable to Define UNC Path For Raster Image Attachment
          • View toggles in Raster Manager stay grey when trying to turn the view on
          • What are .aux.xml files and what creates them
          • Where to set the default attachment settings for raster images
          • Working with Bing Maps
          • Zoom out of binary raster image loses detail
        • Singapore OneMap Data Setup
        • Swap foreground and background of raster image
        • Unable to clip WMS images
        • Unable to edit raster images in a DWG design file
        • Using Register/Resample unable to set background to Black using Grayscale image
        • Way to disable raster when working with MicroStation tools
        • WMS performance is slow
      • +Reality Mesh and Terrains
      • Scalable Mesh Key-in list
      • +Scalable Terrain Models
      • +What's New
      • Working from home with Descartes and ContextCapture Editor
    • +Orbit 3DM
    • +RealityModeling Cloud Services

     
     Questions about this article, topic, or product? Click here. 

    Raster image background color different in DWG and DGN Files

       
      Applies To 
       
      Product(s): MicroStation
      Version(s): 08.11.07.443
      Environment:  N/A
      Area:  Raster
      Subarea: 
      Original Author: Frank McAllister, Bentley Technical Support Group
       

     

     

     

     

     

     

     

    Problem Description

     

    Reason

    Explanation of raster image behavior in sheet file.



    The raster was attached in a DWG file. Changing the background color of a monochrome raster image is not allowed in a DWG file, so the DWG file remains compatible with AutoCAD. When the DWG is referenced into a DGN sheet model, it will keep its foreground/background colors.

    Steps to Resolve

    Workflow.



    1.) The CBA30x42opensheet-Sheet--.dwg file and xgeoff1-13-12.tif file are located in the XREF folder under the parent folder.

    2.) The 2900p2.dgn file is in the parent folder.

    3.) The CBA30x42opensheet-Sheet--.dwg file and the 2900p2.dgn sheet files are reference attached into the 2900p2.dgn file.

    4.) When you open the CBA30x42opensheet-Sheet--.dwg file in MicroStation the xgeoff1-13-12.tif file shows with a white background.

    5.) When you open the 2900p2.dgn file the xgeoff1-13-12.tif image shows with a black background.  You can click invert button and the TIF image background will change to white.

    The DWG file is the model file and the TIF image displays correctly in the model file. The TIF image in the sheet file shows a black background instead of a white background like it does in the DWG model file.

    If the DGN, DWG and TIF image files are all in the same folder the background will show the same background color. The TIF image background shows white in both the DWG and the DGN file.

    When you open the DWG file the TIF image shows a black background. In the DGN file turn on the level that the TIF image shows being attached on.  When you go into the DWG file the TIF image has a white background. When you go into the DGN file the TIF image will show a black background. Click on the TIF image in Raster Manager and clicked invert and the background will change to white. You are now able to go in and out of the DWG and DGN files repeatedly and the settings will not change. The background for the TIF image will stay white in both the DWG and the DGN files.

     

    There are two possible workarounds for the user.

    (1.) If he has that problem with all his monochrome attachments and they are all TIFF files, he can use the MS_RASTER_TIFFINVERT configuration variable.  When set to 1, this variable will invert the display of all attached monochrome TIFF files, the raster will have a white background in both the DWG and DGN.

    (2.) The other workaround would be to use the Invert button in Raster Manager. That would have to be done in all the problematic files.

     

    • Raster
    • MicroStation
    • SELECTsupport
    • Problem Solving
    • Share
    • History
    • More
    • Cancel
    • Felix James Created by Bentley Colleague Felix James
    • When: Tue, Nov 3 2015 4:46 AM
    • Revisions: 1
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies