Example #1
0
 public unsafe PResult Set(byte[] inputRawBuffer, int width, int height, PImage.EPixelFormat pixelFormat)
 {
     fixed(byte *swig_ptrTo_inputRawBuffer = inputRawBuffer)
     {
         {
             PResult ret = new PResult(PapillonPINVOKE.PImage_Set(swigCPtr, (global::System.IntPtr)swig_ptrTo_inputRawBuffer, width, height, (int)pixelFormat), true);
             return(ret);
         }
     }
 }
Example #2
0
    public PResult Convert(PImage dest, PImage.EPixelFormat destImageType)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_Convert(swigCPtr, PImage.getCPtr(dest), (int)destImageType), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #3
0
 public void Allocate(int width, int height, PImage.EPixelFormat pixelFormat)
 {
     PapillonPINVOKE.PImage_Allocate__SWIG_0(swigCPtr, width, height, (int)pixelFormat);
 }
Example #4
0
 public PImage(int width, int height, PImage.EPixelFormat pixelFormat) : this(PapillonPINVOKE.new_PImage__SWIG_0(width, height, (int)pixelFormat), true)
 {
 }
Example #5
0
    public static string GetPixelFormatToString(PImage.EPixelFormat pixelFormat)
    {
        string ret = PapillonPINVOKE.PImage_GetPixelFormatToString__SWIG_1((int)pixelFormat);

        return(ret);
    }
Example #6
0
 public PImage.EPixelFormat GetPixelFormat()
 {
     PImage.EPixelFormat ret = (PImage.EPixelFormat)PapillonPINVOKE.PImage_GetPixelFormat(swigCPtr);
     return(ret);
 }
Example #7
0
    public PImage GetImageShared(PImage.EPixelFormat pixelFormat)
    {
        PImage ret = new PImage(PapillonPINVOKE.PFrame_GetImageShared__SWIG_1(swigCPtr, (int)pixelFormat), true);

        return(ret);
    }
Example #8
0
 public void ConvertTo(PImage.EPixelFormat format)
 {
     PapillonPINVOKE.PFrame_ConvertTo(swigCPtr, (int)format);
 }
Example #9
0
    public static PImage MakeLabel(string text, double fontSize, int thickness, PColour3i labelColour, PColour3i textColor, int border, PImage.EFont font, PImage.EPixelFormat pixelFormat)
    {
        PImage ret = new PImage(PapillonPINVOKE.PUtils_MakeLabel__SWIG_0(text, fontSize, thickness, PColour3i.getCPtr(labelColour), PColour3i.getCPtr(textColor), border, (int)font, (int)pixelFormat), true);

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