Package org.oscim.utils
Class GraphicUtils
java.lang.Object
org.oscim.utils.GraphicUtils
Utility class for graphics operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic float[]imageSize(float picWidth, float picHeight, float scaleFactor, int width, int height, int percent) Given the original image size, as well as width, height, percent parameters, can compute the final image size.
-
Method Details
-
imageSize
public static float[] imageSize(float picWidth, float picHeight, float scaleFactor, int width, int height, int percent) Given the original image size, as well as width, height, percent parameters, can compute the final image size.- Parameters:
picWidth- original image widthpicHeight- original image heightscaleFactor- scale factor to screen DPIwidth- requested width (0: no change)height- requested height (0: no change)percent- requested scale percent (100: no change)
-