public final class P extends Object
Constructor and Description |
---|
P() |
Modifier and Type | Method and Description |
---|---|
static byte[][] |
asRGBABytes(int[] pixels,
byte[] alpha,
byte[] outside) |
static byte[][] |
asRGBBytes(int[] pix) |
static int[] |
blend(byte[] pi,
byte[] pm) |
static int[] |
blend(byte[] r,
byte[] g,
byte[] b) |
static int[] |
blend(byte[] r,
byte[] g,
byte[] b,
byte[] a) |
static int[] |
blendPre(byte[] pi,
byte[] pm)
Puts the
pi (the greyscale channel) into the R, G and B components of the returned int[]
after having multiplied them by the pm (the alpha channel); the alpha channel gets inserted into
the int[] as well. |
static int[] |
blendPre(byte[] r,
byte[] g,
byte[] b,
byte[] alpha)
Pre-multiplies alpha.
|
static byte[] |
merge(byte[] alpha,
byte[] outside)
Merges into alpha if outside is null, otherwise returns alpha as is.
|
public static final int[] blend(byte[] pi, byte[] pm)
public static final int[] blendPre(byte[] pi, byte[] pm)
pi
(the greyscale channel) into the R, G and B components of the returned int[]
after having multiplied them by the pm
(the alpha channel); the alpha channel gets inserted into
the int[] as well.public static final int[] blend(byte[] r, byte[] g, byte[] b, byte[] a)
public static final int[] blendPre(byte[] r, byte[] g, byte[] b, byte[] alpha)
public static final int[] blend(byte[] r, byte[] g, byte[] b)
public static final byte[] merge(byte[] alpha, byte[] outside)
public static final byte[][] asRGBABytes(int[] pixels, byte[] alpha, byte[] outside)
public static byte[][] asRGBBytes(int[] pix)
Copyright © 2015–2021 Fiji. All rights reserved.