Package com.cksource.ckfinder.image
Class ImageSize
java.lang.Object
com.cksource.ckfinder.image.ImageSize
- All Implemented Interfaces:
Serializable
Class that holds info about image dimensions and compression quality.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns image height.int
Returns image quality.int
getWidth()
Returns image width.setHeight
(int height) Sets image height.setQuality
(int quality) Sets image quality.setWidth
(int width) Sets image width.
-
Constructor Details
-
ImageSize
public ImageSize()
-
-
Method Details
-
getWidth
public int getWidth()Returns image width.- Returns:
- image width as number of pixels
-
setWidth
Sets image width.- Parameters:
width
- image width as number of pixels- Returns:
- this
-
getHeight
public int getHeight()Returns image height.- Returns:
- image height as number of pixels
-
setHeight
Sets image height.- Parameters:
height
- image height as number of pixels- Returns:
- this
-
getQuality
public int getQuality()Returns image quality.- Returns:
- image quality as number between 1 and 100
-
setQuality
Sets image quality.- Parameters:
quality
- image quality as number between 1 and 100- Returns:
- this
-