Class Overview
Helper class for converting images.
Summary
Public Methods |
static
byte[]
|
imageYuv420888toJpeg(Image image, int rotation, double ratio)
Converts the given image to JPG format.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
public
static
byte[]
imageYuv420888toJpeg
(Image image, int rotation, double ratio)
Converts the given image to JPG format.
Parameters
image
| the input image with format YUV_420_888 |
rotation
| the angle in degree if the image needs to be rotated |
ratio
| the output ratio of the output image. The output image may be cropped to match the given ratio. |
Returns
- the bytes corresponding to the JPG image