Open PhilterPaper opened 10 months ago
$content->transform( 'matrix' => [ 6 element list ])
needs to be consistent with individual calls (skew(), etc.).$content->matrix( 6 element list )
needs to be consistent with transform(matrix)
method.Once all these are understood and consistently handled, it shouldn't be a problem to return the current matrices through their accessors. As pointed out, currently in graphics mode it just returns $self
-- it would be strange if anyone was already calling $self->matrix()
, so changing its meaning shouldn't cause compatibility issues. One would think that setting scale(x,y) should be reflected in a matrix() call, but check to be sure!
To answer Steve's question, if someone is choosing to use a matrix call to set all 6 elements at once, it would be reasonable to expect that all 6 elements could be returned from the current matrix, so the list may be updated and resubmitted.
Per PDF::API2 ssimms/pdfapi2/issues/66, @cl0ne requested accessor to read matrix list:
}