This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
Why ICanvas.Scale() does not scale? #167
Unanswered
mgierlasinski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I see that general concept of scaling is to store scale factor in canvas state (and in
ScalingScanvas
) and later use it for drawing calculations. With that approach some native implementations looks a little bit odd.For example
NativeConcatenateTransform
- ifNativeCanvas
is wrapped byScalingCanvas
, scale fromAfflineTransform
must be cut off before doing native Matrix concatenation so the scale is not applied 2 times - first with transform itself and then by drawing code likeFillRectangle
. But if you don't useScalingCanvas
,NativeConcatenateTransform
will not scale canvas at all.Why
ICanvas.Scale()
doesn't just callScale()
on nativeICanvas
implementation?Beta Was this translation helpful? Give feedback.
All reactions