Add Images in Masks

You can add images as icons on a Simulink mask and save them in the SLX file.

  1. Select any masked block and on the Block tab, click Add Image.

  2. In the Add mask icon image dialog box, click Browse to select an image from your local repository. You can also set the transparency using the Icon transparency field. Available options are: Opaque, Transparent, and Opaque with ports.

  3. Select the Store a copy of the image in the SLX file check box if you want to store the mask image in the SLX file.

    Note

    You cannot store mask images in an MDL file.

  4. Click OK to save your changes.

Store Mask Images Programmatically

  • Convert mask image to internal for one block

    Simulink.Mask.convertToInternalImage
  • Convert mask image to internal for the whole model

    Simulink.Mask.convertToInternalImages
  • Convert mask image to external for one block

    Simulink.Mask.convertToExternalImage

Related Topics