Java Integer Clip clipColor(final int compIn, final boolean allowRGB555)

Here you can find the source of clipColor(final int compIn, final boolean allowRGB555)

Description

clip Color

License

Open Source License

Declaration

public static int clipColor(final int compIn, final boolean allowRGB555) 

Method Source Code

//package com.java2s;

public class Main {
    public static int clipColor(final int compIn, final boolean allowRGB555) {
        final int compOut;
        if (5 < compIn || !allowRGB555) {
            compOut = 8;/*from ww  w  .  j a v a 2 s .  com*/
        } else {
            compOut = 5;
        }
        return compOut;
    }
}

Related

  1. clip(int lower, int upper, int x)
  2. clip(int val, int from, int to)
  3. clip(int val, int from, int to)
  4. clip(int x)
  5. clip(int[][][] data, int startX, int startY, int stopX, int stopY)
  6. clipHistogram(final int[] hist, final int[] clippedHist, final int limit)
  7. clipInt(int value, int max)
  8. clipInt(int value, int min, int max)
  9. clipPeerIdFromCurrentThreadName()