public static int pixaccGetOffset(this Pixacc pixacc) { if (null == pixacc) { throw new ArgumentNullException("pixacc cannot be null"); } return(Native.DllImports.pixaccGetOffset((HandleRef)pixacc)); }
public static int pixaccMultConst(this Pixacc pixacc, float factor) { if (null == pixacc) { throw new ArgumentNullException("pixacc, pix cannot be null"); } return(Native.DllImports.pixaccMultConst((HandleRef)pixacc, factor)); }
public static int pixaccSubtract(this Pixacc pixacc, Pix pix) { if (null == pixacc || null == pix) { throw new ArgumentNullException("pixacc, pix cannot be null"); } return(Native.DllImports.pixaccSubtract((HandleRef)pixacc, (HandleRef)pix)); }
public static void pixaccDestroy(this Pixacc ppixacc) { if (null == ppixacc) { throw new ArgumentNullException("ppixacc cannot be null"); } var pointer = (IntPtr)ppixacc; Native.DllImports.pixaccDestroy(ref pointer); }
// Pixacc accessors public static Pix pixaccGetPix(this Pixacc pixacc) { if (null == pixacc) { throw new ArgumentNullException("pixacc cannot be null"); } var pointer = Native.DllImports.pixaccGetPix((HandleRef)pixacc); if (IntPtr.Zero == pointer) { return(null); } else { return(new Pix(pointer)); } }
public static void pixacompDestroy(this Pixacc ppixac) { throw new NotImplementedException(); }