- rectangle
- The rectangle region to be compressed. The medthod checks if rectangle is inside the image. Also, the method modifies rectangle if the chroma pixels in it are not matched with the luma pixels in it.
- quality
- Hint to the compressor, 0-100. 0 meaning compress for small size, 100 meaning compress for max quality.
- stream
- OutputStream to write the compressed data.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException if rectangle is invalid; quality is not within [0, 100]; or stream is null.
Compress a rectangle region in the YuvImage to a jpeg. Only ImageFormat.NV21 and ImageFormat.YUY2 are supported for now.