# Set scan pattern This example shows how to create a scan pattern and then set it. ```.. literalinclude:: main.cpp :language: cpp ```