TImage constructor

TImage({
  1. required int x,
  2. required int y,
  3. required List<int> image,
  4. bool compress = false,
  5. bool reverse = false,
  6. TImageMode imageMode = TImageMode.overwrite,
  7. int? threshold,
  8. int smoothWeight = 0,
  9. ThresholdEdgeDitherMode? edgeDitherMode,
  10. ThresholdEdgeDitherDepth edgeDitherDepth = ThresholdEdgeDitherDepth.shallow,
})

Implementation

TImage({
  required int x,
  required int y,
  required List<int> image,
  bool compress = false,
  bool reverse = false,
  TImageMode imageMode = TImageMode.overwrite,
  int? threshold,
  int smoothWeight = 0,
  ThresholdEdgeDitherMode? edgeDitherMode,
  ThresholdEdgeDitherDepth edgeDitherDepth = ThresholdEdgeDitherDepth.shallow,
}) {
  _x = x;
  _y = y;
  _image = image;
  _compress = compress;
  _reverse = reverse;
  _mode = imageMode;
  _threshold = threshold;
  _smoothWeight = smoothWeight;
  _edgeDitherMode = edgeDitherMode;
  _edgeDitherDepth = edgeDitherDepth;
}