Java Pixel Convert From toPixelFromByte(int byteValue)

Here you can find the source of toPixelFromByte(int byteValue)

Description

to Pixel From Byte

License

Apache License

Declaration

private static float toPixelFromByte(int byteValue) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static float toPixelFromByte(int byteValue) {
        return normalize(byteValue, 0, 255);
    }/*www.j a v  a 2  s  .c  o  m*/

    private static float normalize(float d, float min, float max) {
        return (d - min) / (max - min);
    }
}

Related

  1. toPixel(byte b)
  2. toPixel(float meter)
  3. toPixel(String value)
  4. toPixelByte(float floatValue)
  5. toPixelLength(float number)
  6. toPixelPosY(float posY)
  7. toPixelWidth(float width)