protected static class PDFImageColorModel.SoftMask
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
byte[] |
alphabits |
int |
bitspersample |
int |
height |
float[] |
matte |
int |
width |
Constructor and Description |
---|
SoftMask(byte[] alpha,
int w,
int h,
int bps,
float[] marray)
Create SoftMask.
|
Modifier and Type | Method and Description |
---|---|
float |
getAlpha(int x,
int y)
returns the alpha value that would be mapped to the point in the source image.
|
int |
getUnnormalizedAlpha(int x,
int y) |
void |
setSourceImageSize(int sw,
int sh) |
public int width
public int height
public int bitspersample
public byte[] alphabits
public float[] matte
public SoftMask(byte[] alpha, int w, int h, int bps, float[] marray)
public void setSourceImageSize(int sw, int sh)
public float getAlpha(int x, int y)
public int getUnnormalizedAlpha(int x, int y)