setTransform method
void
setTransform(
- Matrix4 t
Set the transformation Matrix
Implementation
void setTransform(Matrix4 t) {
var o = 0;
assert(() {
if (_page.pdfDocument.settings.verbose) {
o = _buf.offset;
_buf.putString(' ' * (_indent));
}
return true;
}());
final s = t.storage;
PdfNumList(<double>[s[0], s[1], s[4], s[5], s[12], s[13]])
.output(_page, _buf);
_buf.putString(' cm ');
_context.ctm.multiply(t);
assert(() {
if (_page.pdfDocument.settings.verbose) {
final n = math.max(0, _commentIndent - _buf.offset + o);
_buf.putString(' ' * n);
_buf.putComment('setTransform($s)');
}
return true;
}());
}