private void WriteImage(imageio.IIOImage iio) { if (NativeStream == null) { throw new Exception("Output stream not specified"); } NativeWriter.write(iio); }
internal void WritePlainImage(PlainImage pi) { try { imageio.IIOImage iio = GetIIOImageContainer(pi); WriteImage(iio); } catch (java.io.IOException ex) { throw new System.IO.IOException(ex.Message, ex); } }