Java Pixel Convert From toPixelByte(float floatValue)

Here you can find the source of toPixelByte(float floatValue)

Description

to Pixel Byte

License

Apache License

Declaration

static byte toPixelByte(float floatValue) 

Method Source Code

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

public class Main {
    static byte toPixelByte(float floatValue) {
        return (byte) (floatValue * (Byte.MAX_VALUE - Byte.MIN_VALUE) + Byte.MIN_VALUE);
    }/*w w  w.  java 2 s  .c om*/
}

Related

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