get Blue - Java 2D Graphics

Java examples for 2D Graphics:Color RGB

Description

get Blue

Demo Code


//package com.java2s;

public class Main {
    public static float getBlue(int Color) {
        float Blue = (float) (Color >> 8 & 255) / 255.0F;
        return Blue * 1.0F;
    }/*from   www  .j  av a 2 s.  com*/
}

Related Tutorials