UNPKG

react-native-star-io10

Version:

react-native-star-io10 is a library for supporting application development for Star Micronics devices.

39 lines (30 loc) 829 B
export class ImageParameter { private _source: string; private _width: number; private _effectDiffusion: boolean = false; private _threshold: number = 127; get source(): string { return this._source; } get width(): number { return this._width; } get effectDiffusion(): boolean { return this._effectDiffusion; } get threshold(): number { return this._threshold; } constructor(source: string, width: number) { this._source = source; this._width = width; } setEffectDiffusion(effectDiffusion: boolean): ImageParameter { this._effectDiffusion = effectDiffusion; return this; } setThreshold(threshold: number): ImageParameter { this._threshold = threshold; return this; } }