Ejemplo n.º 1
0
 private int DevSetPaint(IntPtr paint)
 {
     try
     {
         this.implementation.DevSetPaint(HDevOperatorWrapper.LoadTuple(paint));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Ejemplo n.º 2
0
 private int DevSetLineWidth(IntPtr width)
 {
     try
     {
         this.implementation.DevSetLineWidth(HDevOperatorWrapper.LoadTuple(width));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Ejemplo n.º 3
0
 private int DevSetColored(IntPtr colored)
 {
     try
     {
         this.implementation.DevSetColored(HDevOperatorWrapper.LoadTuple(colored));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Ejemplo n.º 4
0
 private int DevSetShape(IntPtr shape)
 {
     try
     {
         this.implementation.DevSetShape(HDevOperatorWrapper.LoadTuple(shape));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Ejemplo n.º 5
0
 private int DevDispText(IntPtr text, IntPtr coordSystem, IntPtr row, IntPtr column, IntPtr color, IntPtr genParamNames, IntPtr genParamValues)
 {
     try
     {
         this.implementation.DevDispText(HDevOperatorWrapper.LoadTuple(text), HDevOperatorWrapper.LoadTuple(coordSystem), HDevOperatorWrapper.LoadTuple(row), HDevOperatorWrapper.LoadTuple(column), HDevOperatorWrapper.LoadTuple(color), HDevOperatorWrapper.LoadTuple(genParamNames), HDevOperatorWrapper.LoadTuple(genParamValues));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Ejemplo n.º 6
0
 private int DevSetPart(IntPtr row, IntPtr column, IntPtr width, IntPtr height)
 {
     try
     {
         this.implementation.DevSetPart(HDevOperatorWrapper.LoadTuple(row), HDevOperatorWrapper.LoadTuple(column), HDevOperatorWrapper.LoadTuple(width), HDevOperatorWrapper.LoadTuple(height));
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }
Ejemplo n.º 7
0
 private int DevOpenWindow(IntPtr row, IntPtr column, IntPtr width, IntPtr height, IntPtr background, IntPtr windowID)
 {
     try
     {
         HTuple windowHandle;
         this.implementation.DevOpenWindow(HDevOperatorWrapper.LoadTuple(row), HDevOperatorWrapper.LoadTuple(column), HDevOperatorWrapper.LoadTuple(width), HDevOperatorWrapper.LoadTuple(height), HDevOperatorWrapper.LoadTuple(background), out windowHandle);
         HalconAPI.StoreTuple(windowID, windowHandle);
     }
     catch (Exception ex)
     {
         return(HDevOperatorWrapper.ToHalconError(ex));
     }
     return(2);
 }