Java Pixel Convert From toPixelPosY(float posY)

Here you can find the source of toPixelPosY(float posY)

Description

to Pixel Pos Y

License

Open Source License

Declaration

public static float toPixelPosY(float posY) 

Method Source Code

//package com.java2s;

public class Main {
    public static final int HEIGHT = 600;

    public static float toPixelPosY(float posY) {
        float y = HEIGHT - (1.0f * HEIGHT) * posY / 100.0f;
        return y;
    }/*from  w  ww.  ja  va 2 s  .c o  m*/
}

Related

  1. toPixel(float meter)
  2. toPixel(String value)
  3. toPixelByte(float floatValue)
  4. toPixelFromByte(int byteValue)
  5. toPixelLength(float number)
  6. toPixelWidth(float width)