Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ContextCapture | Descartes | Pointools | Orbit
  • Product Communities
ContextCapture | Descartes | Pointools | Orbit
ContextCapture | Descartes | Pointools | Orbit Wiki How to create a Color Mask and set multiple colors transparent
    • 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
        • Bentley Descartes - Convert line in raster image to vector is pixelated
        • Bentley Descartes - Miscellaneous Raster Functionalities
        • Bentley Descartes - Mosaic Rasters
        • Bentley Descartes - Raster Editing
        • Bentley Descartes - Raster Enhancement
        • Bentley Descartes - Raster Registration
        • Bentley Descartes - Raster Texturing
        • Bentley Descartes - Raster Transformation
        • Bentley Descartes - Raster Vectorization
        • Bentley Descartes – Merge Command Does Not Work When Set To Vector Only
        • Change color on part of a raster image using Bentley Descartes for MicroStation
        • Combine Image Tool in Descartes
        • Crop .sid file
        • Descartes Resize Canvas/ Irasb Shrink Border
        • Flood command different in Descartes than in I/Rasb
        • How to create a Color Mask and set multiple colors transparent
        • How to set multipe color transparent in Descartes
        • Need to combine two raster images and create a single raster image
        • Raster Images are being attached as Read-Only in Raster Manager
        • Register-Resample – Warp command data does not line up
        • Resize Canvas Error Message
        • Stamp command not rasterizing complete text data when selecting a word
        • The New Merge Tool in Descartes [CS]
        • Unable To Change Raster Image From Read-Only Mode In DWG File
        • Using Erase tool causes area to show background color where raster image area was erased
      • Raster Grid
      • +Raster Manager
      • +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. 

    How to create a Color Mask and set multiple colors transparent

      Product(s): Bentley Descartes for MicroStation
      Version(s): 08.11.09.601
      Environment: N\A
      Area: Tools
      Subarea: Edit

    Steps to create a Color Mask and set multiple colors in a raster image transparent in Raster Manager

    Background

    A Color Mask can be used when working with Color and Grayscale raster images when using tools in Descartes like the Vectorization tool, which is used to convert raster data to vector data.

     

    A color mask lets you handle any image with more than two colors exactly as if it was a two-color image.  A color mask cannot be defined for two-color images (Monochrome), as they already have only a foreground color and a background color.  All tools used for image editing or vectorization, normally work with binary (two color) images only. Because of the color mask feature, these tools can now be used with images that have more than two colors.  For a given image, you can define an unlimited number of color masks to be saved in the same color mask file.

    Steps to Accomplish

    Create a color mask in Descartes.
     
    1. Go to Raster Manager Settings > Tools > Color Mask. 
    2. Click on the 3rd tool, the color mask dialog.
    3. Click on untitled and right mouse, then New Mask.
    4. Give the mask an appropriate name. 
    5. Highlight the mask name, right mouse click > Add colors. 
    6. In the Add to mask tool settings, select the Area option (the method to select the colors) and make sure your mask name is listed below. Check on highlight to show the colors selected in the image.
    7. Select the colors by clicking on the image.  Notice they will highlight in red.  Once all of the colors are selected for the mask, go back to the Color Mask dialog and select File > Save.
    8. Now go to Raster Manager Utilities > Descartes Attachment.  In the transparency tab, select RM Define and click Remove and then select the color mask you just created and click Insert.  By default the transparency will be set to 100%. Close this dialog. 
    9. Make sure that the transparent toggle is turned on in Raster Manager > Settings > Attachment > Color tab, refresh the view and the image should now have transparency.
     
    Note 1: Raster Manager will honor transparencies set in Descartes, but the raster manager user will not be able to modify the color mask.  This can only be done using Descartes.
    Note 2:  Raster Manager can only make one color transparent.  This is accomplished through the Raster Manager > Settings > Attachment Settings > Color tab. Select the color to be made transparent and the percentage of transparency.
     
    Set one color in the raster image transparent  
     
    1.)  Highlight your raster image name
    2.)  Click on the Transparency button.  This will bring up the Select Transparency box
    3.)  Click on the eyedropper and hold your mouse button down and drag it over the area you want to be transparency.  It will set the transparency color. 
     

    The area that matches that color will then be transparent. If a color is not transparent then it may be that the area that you want to be transparent is made up of different colors that are close, but not the same color. In this case they colors will have to be added to the color mask.


     

      Original Author:

    Frank McAllister

    • Descartes
    • 08.11.09.601
    • Bentley Descartes for MicroStation
    • edit
    • en
    • SELECTsupport
    • Tools
    • Share
    • History
    • More
    • Cancel
    • Felix James Created by Bentley Colleague Felix James
    • When: Mon, Nov 2 2015 9:02 AM
    • Pascal Cloutier Last revision by Bentley Colleague Pascal Cloutier
    • When: Thu, Mar 19 2020 10:11 AM
    • Revisions: 2
    • 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