Android Color Filter ClippedColorPart(int color)

Here you can find the source of ClippedColorPart(int color)

Description

Clipped Color Part

Declaration

public static int ClippedColorPart(int color) 

Method Source Code

//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;
    }
}

Related

  1. findCommonElementType(Collection collection)
  2. getContrastFilter(float factor)
  3. getScaleContrastFilter(float factor)
  4. getSecondaryColorFromPrimaryColor(int color, double secondaryColorStrength)