
au.com.southsky.jfreesane.Frame Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfreesane Show documentation
Show all versions of jfreesane Show documentation
A Java client for the SANE daemon
package au.com.southsky.jfreesane;
/**
* Represents one frame of a {@link SaneImage}. A SANE image is composed of one
* or more of these frames.
*/
class Frame {
private final SaneParameters parameters;
private final byte[] data;
public Frame(SaneParameters parameters, byte[] data) {
this.parameters = parameters;
this.data = data;
}
public FrameType getType() {
return parameters.getFrameType();
}
public byte[] getData() {
return data;
}
public int getBytesPerLine() {
return parameters.getBytesPerLine();
}
public int getWidth() {
return parameters.getPixelsPerLine();
}
public int getHeight() {
return parameters.getLineCount();
}
public int getPixelDepth() {
return parameters.getDepthPerPixel();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy