Does scale conversion apply the effect of rendering quality to CGPath?

I have a CGPath (created by UIBezierPath) that I want to scale to whatever size I want using CGAffineTransformScale.

This affects the quality of my drawing (when converting to an image), and if not, why?

+4
source share
1 answer

A UIBezierPath is not a raster image. These are made from coordinates that can be used for several operations, such as: stroke, fill, hitTest, alphaMask, etc. When scaling UIBezierPath, you apply a geometric transformation to these coordinates. Then you can perform one of the operations mentioned above using the scaled path, and the quality of the picture will not suffer at all.

In other words, drawing using UIBezierPath is similar to drawing a vectorized image. They also do not suffer from scaling operations.

, , - , ( ). , , , . , , . , , , .

+2

All Articles