# How to add custom graphics on image display

Some applications may require extra graphics to be added onto default image display, this topic will guide you the process though an example of adding labels and markers of features' coordinates on feature finding displays.

Each image display on AlignPlus is a Multiple Display control which displays multiple VisionPro records at the same time. Each record has its own unique name in its multiple display. In this example, the feature finding multiple display has four records in it: Camera0Pos0, Camera1Pos0, Camera0Pos1, Camera1Pos1. You can find these names by opening the image display page and check its "DisplayNames" property.

Different record names are separated with ";" or ",".

The feature finding image display uses VisionPro records from DisplayRecordGenerator in feature finding task. By default, DisplayRecordGenerator directly uses the records output from FeatureExtractorSubTask.

To add labels on display, we can insert a script block between FeatureExtractorSubTask and DisplayRecordGenerator to add labels to default records.

Here are the steps:

1. Add a script block to feature finding task, rename it as "AddLabelToRecords".

2. Set its input and output pins as below:

   RuntimeFeatures will provide features coordinate information for labels.

3. Link the input pins to FeatureExtractorSubTask's thrid and last pin, the ouput pin to DisplayRecordGenerator last input pin as shown in modified task above.

4. Set the script block's condition the same as FeatureExtractorSubTask's, so that it also only gets called when all images are acquired at all positions.

5. Add "System.Drawing.dll" and "Cognex.Designer.AlignPlus.Alignment.dll" to script block's references

6. Add "System.Drawing", "Cognex.Designer.AlignPlus.Alignment", "Cognex.VisionPro.Implementation, and "Cognex.VisionPro" to script block's name spaces.

7. Within the script block, implement the following code.

8. Run the feature finding task and see the result.