setC method

  1. @override
ImageD setC(
  1. ImageC o
)
override

Copies the fields of the native struct o into this instance.

Implementation

@override
ImageD setC(ImageC o) {
  onOriginalPointer((p) {
    p.ref.data = o.data;
    p.ref.format = o.format;
  });
  width = o.width;
  height = o.height;
  mipmaps = o.mipmaps;
  format = .fromValue(o.format);
  data = o.data.address != 0 ? o.data.cast<Uint8>().asTypedList(frameSize).toList() : [];
  return this;
}