Java Pixel Convert To PixelsToPoints(float value, int dpi)

Here you can find the source of PixelsToPoints(float value, int dpi)

Description

Pixels To Points

License

Open Source License

Declaration

public static float PixelsToPoints(float value, int dpi) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2015, Daniel Ludin//from   www.j  a  v  a2 s. c  o m
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Daniel Ludin (ludin@hispeed.ch) - initial implementation
 *******************************************************************************/

public class Main {
    public static float PixelsToPoints(float value, int dpi) {
        return value / dpi * 72;
    }
}

Related

  1. pixels2angle(double pixels)
  2. pixels2Molecules(float[] pixels, int width, int height)
  3. pixelsToCm(float pixels)
  4. pixelsToInches(int sizeInPixels, int dpi)
  5. pixelsToPoint(int pixels, int dpi)
  6. pixelsToYears(double dim, int chartWidth, int firstChartYear, int lastChartYear)
  7. pixelToEmu(int pixels, int dpi)
  8. pixelToRGB(int pixel, int[] prgb)
  9. pixelXYToTileXY(int pixelX, int pixelY)