示例#1
0
    public PResult DrawString(string text, PPoint2Di origin, PImage.EFont font, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawString__SWIG_1(swigCPtr, text, PPoint2Di.getCPtr(origin), (int)font, PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#2
0
    public PResult DrawLabel(string text, PPoint2Di centre, PColour3i labelColour, PColour3i textColor, PImage.EFont font)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawLabel__SWIG_1(swigCPtr, text, PPoint2Di.getCPtr(centre), PColour3i.getCPtr(labelColour), PColour3i.getCPtr(textColor), (int)font), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#3
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PColour3i backgroundColour, PColour3i fontColour, PUtils.ELabelPosition position, double fontSize, int lineWidth, PColour3i boundingBoxColour, PImage.EFont font)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_7(PImage.getCPtr(image), PDetection.getCPtr(detection), message, PColour3i.getCPtr(backgroundColour), PColour3i.getCPtr(fontColour), (int)position, fontSize, lineWidth, PColour3i.getCPtr(boundingBoxColour), (int)font), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#4
0
    public static PImage MakeLabel(string text, double fontSize, int thickness, PColour3i labelColour, PColour3i textColor, int border, PImage.EFont font)
    {
        PImage ret = new PImage(PapillonPINVOKE.PUtils_MakeLabel__SWIG_1(text, fontSize, thickness, PColour3i.getCPtr(labelColour), PColour3i.getCPtr(textColor), border, (int)font), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#5
0
    public static PResult DrawRectangle(PImage image, PRectanglei rectangle, string message, PUtils.ELabelPosition position, double fontSize, int lineWidth, PColour3i rectangleColour, PColour3i labelColour, PColour3i fontColour, PImage.EFont font)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawRectangle__SWIG_0(PImage.getCPtr(image), PRectanglei.getCPtr(rectangle), message, (int)position, fontSize, lineWidth, PColour3i.getCPtr(rectangleColour), PColour3i.getCPtr(labelColour), PColour3i.getCPtr(fontColour), (int)font), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }