HObject转byte[]

HOperatorSet.GetImagePointer1(test, out HTuple pointer, out HTuple type, out HTuple width, out HTuple height);
byte[] by = new byte[width * height];
Marshal.Copy(pointer, by, 0, width * height);