samedi 25 avril 2015

"Flatten" frame+anchorPoint+matrix to matrix only


I have a composition made up of several CALayers and UIViews that are positioned using the frame/bounds/position properties. Some of these elements are also transformed with a CGAffineTransform — sometimes with their anchorPoint modified.

Assuming I have the proper pixel data and dimensions for these elements, I need to figure out a way to replicate the original composition using only a single transform per element.

My questions are:

  1. Is this even possible?
  2. Is there a name for doing something like this and how can I get started?

Aucun commentaire:

Enregistrer un commentaire