Add Images in Masks
You can add images as icons on a Simulink mask and save them in the SLX file.
Select any masked block and on the Block tab, click Add Image.
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
, andOpaque with ports
.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.
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