Example #1
0
        public void renderGridToFile(IndigoObject items, int[] refatoms, int ncolumns, string filename)
        {
            if (refatoms != null)
            if (refatoms.Length != items.count())
               throw new IndigoException("renderGridToFile(): refatoms[] size must be equal to the number of objects");

             _renderer_lib.indigoRenderGridToFile(items.self, refatoms, ncolumns, filename);
        }
Example #2
0
        public byte[] renderGridToBuffer(IndigoObject items, int[] refatoms, int ncolumns)
        {
            IndigoObject bufh = _indigo.writeBuffer ();

            if (refatoms != null)
            if (refatoms.Length != items.count ())
                throw new IndigoException ("renderGridToFile(): refatoms[] size must be equal to the number of objects");

            _indigo.checkResult (_renderer_lib.indigoRenderGrid (items.self, refatoms, ncolumns, bufh.self));
            return bufh.toBuffer ();
        }
Example #3
0
        public void renderGridToFile(IndigoObject items, int[] refatoms, int ncolumns, string filename)
        {
            if (refatoms != null)
            {
                if (refatoms.Length != items.count())
                {
                    throw new IndigoException("renderGridToFile(): refatoms[] size must be equal to the number of objects");
                }
            }

            _indigo.checkResult(_renderer_lib.indigoRenderGridToFile(items.self, refatoms, ncolumns, filename));
        }
Example #4
0
        public byte[] renderGridToBuffer(IndigoObject items, int[] refatoms, int ncolumns)
        {
            using (IndigoObject bufh = _indigo.writeBuffer()) {
                if (refatoms != null)
                {
                    if (refatoms.Length != items.count())
                    {
                        throw new IndigoException("renderGridToFile(): refatoms[] size must be equal to the number of objects");
                    }
                }

                _indigo.checkResult(_renderer_lib.indigoRenderGrid(items.self, refatoms, ncolumns, bufh.self));
                return(bufh.toBuffer());
            }
        }