VectorImage AddLine
Adds a line to the VectorImage
Overloads
public void AddLine(float startX, float startY, float startZ, float endX, float endY, float endZ) |
Return value
void |
Parameters
float | startX | The x coordinate of the starting point of the Line |
float | startY | The y coordinate of the starting point of the Line |
float | startZ | The z coordinate of the starting point of the Line |
float | endX | The x coordinate of the end point of the Line |
float | endY | The y coordinate of the end point of the Line |
float | endZ | The z coordinate of the end point of the Line |
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);
float startX = 0;
float startY = 0;
float startZ = 0;
float endX = 20;
float endY = 10;
float endZ = 0;
vectorImage.AddLine(startX, startY, startZ, endX, endY, endZ);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch
{
}
}