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)
73 lines • 1.79 kB
JavaScript
export class Pvr3Info {
get backgroundColor() {
return this._backgroundColor;
}
get numFrames() {
return this._numFrames;
}
get width() {
return this._width;
}
get height() {
return this._height;
}
get mipCount() {
return this._mipCount;
}
get flags() {
return this._flags;
}
get format() {
return this._format;
}
get order() {
return this._order;
}
get colorSpace() {
return this._colorSpace;
}
get channelType() {
return this._channelType;
}
get depth() {
return this._depth;
}
get numSurfaces() {
return this._numSurfaces;
}
get numFaces() {
return this._numFaces;
}
get metadataSize() {
return this._metadataSize;
}
constructor(opt) {
this._backgroundColor = undefined;
this._numFrames = 1;
this._width = 0;
this._height = 0;
this._mipCount = 0;
this._flags = 0;
this._format = 0;
this._order = [0, 0, 0, 0];
this._colorSpace = 0;
this._channelType = 0;
this._depth = 0;
this._numSurfaces = 0;
this._numFaces = 0;
this._metadataSize = 0;
this._width = opt.width;
this._height = opt.height;
this._mipCount = opt.mipCount;
this._flags = opt.flags;
this._format = opt.format;
this._order = opt.order;
this._colorSpace = opt.colorSpace;
this._channelType = opt.channelType;
this._depth = opt.depth;
this._numSurfaces = opt.numSurfaces;
this._numFaces = opt.numFaces;
this._metadataSize = opt.metadataSize;
}
}
//# sourceMappingURL=pvr3-info.js.map