Returns a serialized version of the image.
()
| 80 | |
| 81 | /** Returns a serialized version of the image. */ |
| 82 | public byte[] getSerializedImage() { |
| 83 | ImagePlus imp = new ImagePlus("",img); |
| 84 | return new FileSaver(imp).serialize(); |
| 85 | } |
| 86 | |
| 87 | /** Returns the current opacity. */ |
| 88 | public double getOpacity() { |