image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
33 lines • 728 B
JavaScript
import { PnmFormat } from './pnm-format.js';
export class PnmInfo {
get width() {
return this._width;
}
set width(v) {
this._width = v;
}
set height(v) {
this._height = v;
}
get height() {
return this._height;
}
get backgroundColor() {
return this._backgroundColor;
}
get numFrames() {
return this._numFrames;
}
get format() {
return this._format;
}
constructor(format) {
this._width = 0;
this._height = 0;
this._backgroundColor = undefined;
this._numFrames = 1;
this._format = PnmFormat.invalid;
this._format = format;
}
}
//# sourceMappingURL=pnm-info.js.map