Class Overview
Helper class for managing image scaling for Avatars.
Summary
[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 Constructors
Public Methods
Creates an image consisting of the given selection of the source image rescaled to a square with the given size.
If the selection is null, a not-entirely-stupid algorithm for determining a plausible square subselection.
Parameters
sourceImage
| the image source to crop and scale from. |
crop
| the subrectangle to use, usually square to avoid aspect ratio changes. |
size
| the desired size of the edge of the resulting square image. |