Exemplo n.º 1
0
        public static int pixaccGetOffset(this Pixacc pixacc)
        {
            if (null == pixacc)
            {
                throw new ArgumentNullException("pixacc cannot be null");
            }

            return(Native.DllImports.pixaccGetOffset((HandleRef)pixacc));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        // 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));
            }
        }
Exemplo n.º 6
0
 public static void pixacompDestroy(this Pixacc ppixac)
 {
     throw new NotImplementedException();
 }