I have a byte array, which contains an image... i\'d like to save it cropped.
My working method was: get the byte[] convert it into a bitmap with BitmapFactory.deco
The method decodeByteArray(dataArray, offset, length, options)
is not intended to crop an image but to parse an image from a byte buffer that contains more data than the image itself. The typical use of this is to extract images from complex binary data structures that include images among other things.
To my knowledge there is no way to crop an image without creating a new one. To me the best you can do is what you are currently doing.