public class MediaMlImageBuilder extends Object
Once Image
is passed in,
to keep data integrity you shouldn't modify content in it.
Use MediaImageExtractor
to get Image
you passed
in.
Public Constructor Summary
Public Method Summary
MlImage | |
MediaMlImageBuilder |
setRotation(int rotation)
Sets value for
MlImage.getRotation() .
|
Inherited Method Summary
Public Constructors
public MediaMlImageBuilder (Image mediaImage)
Creates the builder with a mandatory Image
.
Also calls
setRotation(int)
to set the optional properties. If not set, the values will
be set with default:
- rotation: 0
Parameters
mediaImage | image data object. |
---|
Public Methods
public MediaMlImageBuilder setRotation (int rotation)
Sets value for MlImage.getRotation()
.
Throws
IllegalArgumentException | if the rotation value is not 0, 90, 180 or 270. |
---|