Java Pixel Convert To pixelsToCm(float pixels)

Here you can find the source of pixelsToCm(float pixels)

Description

pixels To Cm

License

Open Source License

Declaration

public static float pixelsToCm(float pixels) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static float DPI;

    public static float pixelsToCm(float pixels) {
        return (pixels / DPI) * (1 / 0.393700787f);
    }/*  www.ja v  a 2s .  c  om*/
}

Related

  1. pixel2logical_size(float l, float zoom)
  2. pixel2WidthUnits(int pxs)
  3. pixels2angle(double pixels)
  4. pixels2Molecules(float[] pixels, int width, int height)
  5. pixelsToInches(int sizeInPixels, int dpi)
  6. pixelsToPoint(int pixels, int dpi)
  7. PixelsToPoints(float value, int dpi)
  8. pixelsToYears(double dim, int chartWidth, int firstChartYear, int lastChartYear)