DynamicTextShape TransformationMatrix

Gets or sets the transform matrix used to transform the text shape.

public Matrix TransformationMatrix {get;Set}

 

Return value

Matrix The transformation matrix

 

Example

Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);

if (scanDocument != null)
{
    VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);

    vectorImage.SetMarkSpeed(1000);
    vectorImage.SetJumpSpeed(2000);
    vectorImage.SetJumpDelay(100);
    vectorImage.SetMarkDelay(100);

    //Set Laser Delays
    vectorImage.SetLaserOnDelay(10);
    vectorImage.SetLaserOffDelay(10);

    //Create a Date Time DynamicArcText shape
    DynamicTextShape dynamicText = new DynamicTextShape();
    dynamicText.Height = 5.5f;
    dynamicText.VariableName = "arcText1";
    dynamicText.Text = "Time [hh]:[mm]:[ss] [tt]";
    dynamicText.EvaluateVariableTags = true;
    dynamicText.FontName = "Arial";

    Matrix transformationMatrix = new Matrix(1, 1, 0, 1, 1, 0);
    dynamicText.TransformationMatrix = transformationMatrix;

    vectorImage.AddDynamicText(dynamicText);

    List<UnicodeRange> unicodeRangeList = new List<UnicodeRange>();
    //Characters from 0 to 255 or basically extended ASCII range is embedded 
    unicodeRangeList.Add(new UnicodeRange((char)0, (char)255));
    //embed the font for dynamic text shapes top be marked 
    scanDocument.EmbedFont("Arial", FontStyle.Regular, unicodeRangeList);

    scanDocument.Iterations = 5;

    scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));

    try
    {
        scanDocument.StartScanning();
    }
    catch (Exception exp)
    {
        MessageBox.Show(exp.Message);
    }
}