public byte[] renderToBuffer(IndigoObject obj) { _indigo.setSessionID(); using (IndigoObject bufh = _indigo.writeBuffer()) { _indigo.checkResult(_renderer_lib.indigoRender(obj.self, bufh.self)); byte *buf; int bufsize; _indigo.checkResult(_indigo._indigo_lib.indigoToBuffer(bufh.self, &buf, &bufsize)); byte[] res = new byte[bufsize]; for (int i = 0; i < bufsize; ++i) { res [i] = buf [i]; } return(res); } }
public byte[] mdlct() { dispatcher.setSessionID(); IndigoObject buf = dispatcher.writeBuffer(); _indigo_lib.indigoSaveMDLCT(self, buf.self); return(buf.toBuffer()); }