Here you can find the source of ClippedColorPart(int color)
public static int ClippedColorPart(int color)
//package com.java2s; public class Main { public static int ClippedColorPart(int color) { if (color < 0) { return 0; } else if (color > 0xFF) { return 0xFF; }/* w w w.j a v a 2 s .co m*/ return color; } }