Yes, yes !There is currently no way to set the angle via scripting, but that would be possible to add if useful.
With "Get" and "Set" the angle of the reticule.
Concerning the reticules script functions ... thank for the information.
I already know it ... here a small script that shows all possible reticules from the list (with 2 surprises).
Code: Select all
import time
clr.AddReference("System.Drawing")
from System.Drawing import PointF
delay = 1
SharpCap.Reticules.SelectedReticule = SharpCap.Reticules[1]
print("1: ",SharpCap.Reticules.SelectedReticule.Name)
SharpCap.Reticules.SelectedReticule.FractionalPosition = PointF(0.1,0.1)
time.sleep(delay)
SharpCap.Reticules.SelectedReticule = SharpCap.Reticules[2]
print("2: ",SharpCap.Reticules.SelectedReticule.Name)
SharpCap.Reticules.SelectedReticule.FractionalPosition = PointF(0.2,0.2)
time.sleep(delay)
SharpCap.Reticules.SelectedReticule = SharpCap.Reticules[3]
print("3: ",SharpCap.Reticules.SelectedReticule.Name)
SharpCap.Reticules.SelectedReticule.FractionalPosition = PointF(0.3,0.3)
time.sleep(delay)
SharpCap.Reticules.SelectedReticule = SharpCap.Reticules[4]
print("4: ",SharpCap.Reticules.SelectedReticule.Name)
SharpCap.Reticules.SelectedReticule.FractionalPosition = PointF(0.4,0.4)
time.sleep(delay)
SharpCap.Reticules.SelectedReticule = SharpCap.Reticules[5]
print("5: ",SharpCap.Reticules.SelectedReticule.Name)
SharpCap.Reticules.SelectedReticule.FractionalPosition = PointF(0.5,0.5)
time.sleep(delay)
SharpCap.Reticules.SelectedReticule = SharpCap.Reticules[6]
print("6: ",SharpCap.Reticules.SelectedReticule.Name)
SharpCap.Reticules.SelectedReticule.FractionalPosition = PointF(0.6,0.6)
time.sleep(delay)
SharpCap.Reticules.SelectedReticule = SharpCap.Reticules[0]
print("0: ",SharpCap.Reticules.SelectedReticule.Name)
A script with the possibility to "save" and "set back" the position and the angle of the Single Crosshair would be easy.
The Circle reticule has more parameters, but should be possible too.
In detail, it will be necessary to think about the change of the binning or the ROI size/position.
Shall the reticule stay relative to the image or not ?
Regards,
Jean-Francois