Package com.syzygy.events.database
Class Image.Options
java.lang.Object
com.syzygy.events.database.Image.Options
- Enclosing class:
- Image
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Image.OptionsAsIs()Returns the image as isstatic Image.OptionsCircle(int size) Returns the image resized to a size*size square then cropped to the largest circle that fits withinstatic Image.OptionsReturns the image cropped to the largest circle that can fit within the imagevoidmodifyImage(com.squareup.picasso.RequestCreator img) Modifies the image based off the parameters of the optionstatic Image.OptionsSquare(int size) Returns the image resized to size*size
-
Field Details
-
width
private final int width -
height
private final int height -
isCircle
private final boolean isCircle
-
-
Constructor Details
-
Options
public Options(int width, int height, boolean isCircle)
-
-
Method Details
-
modifyImage
public void modifyImage(com.squareup.picasso.RequestCreator img) Modifies the image based off the parameters of the option- Parameters:
img- The image to modify
-
Square
Returns the image resized to size*size- Parameters:
size- The width and height of the image
-
LargestCircle
Returns the image cropped to the largest circle that can fit within the image -
Circle
Returns the image resized to a size*size square then cropped to the largest circle that fits within- Parameters:
size- the diameter of the circle
-
AsIs
Returns the image as is
-