简体   繁体   中英

How to create CGAffineTransform from CGAffineTransformMake?

I went through apple documentation for CGAffineTransform . But I couldn't able to figure out what are the values need to be passed to CGAffineTransformMake method to create CGAffineTransform .

There are six values need to be passed for creation of CGAffineTransform . They are a,b,c,d,tx and ty.

Could anyone brief me about the parameters?

Generally speaking, unless you understand that matrix manipulations well (or are a masochist), you want to use the CGAffineTransformMake Rotation / Scale / Translation methods which provide a much cleaner and obvious interface for the standard tasks you want to complete.

You can also chain the transformations together with CGAffineTransform Rotate / Scale / Translate so that you can 'build' a single complex transform (or append to a previous existing transform).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM