Class GraphicUtils

java.lang.Object
org.oscim.utils.GraphicUtils

public final class GraphicUtils extends Object
Utility class for graphics operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 width
      picHeight - original image height
      scaleFactor - scale factor to screen DPI
      width - requested width (0: no change)
      height - requested height (0: no change)
      percent - requested scale percent (100: no change)