I'm making iPhone applications for a while, using basic changes (rotation, scale, etc.) D likes to do some more complex.
Mathematics is not really my strongest thing ... but I was wondering how can I think about adding 'Perspective' to 'UCTView' (see image below). I quickly put the screenshot in the jeep using the squaw options in Photoshop.
I have seen a look around the stack overflow to solve it, I found that works excellent - but this Actually not what I am doing because its height is the edge of the edge most is from the top right
Do anyone know how I can do this catcherform 3D? But these different without varying heights?
If you just want to obliterate, you do not need 3D conversion is. A affine change would be sufficient.
- (zero) drawRect: (CGRact) reCamp {CGContextRef ctx = UIGraphicsGetCurrentContext (); CGAffineTransform transformation = CGFine TransactionIdentity; Transform.b = -0.1; Transform.a = 0.9; CGContextConcatCTM (ctx, result); // Drawing on context} This is a modified copy and paste from a project that has a similar change, but you may need to tune the parameters A and B. This will increase the increase from 1 to 1 in the left from right (9: 9/9) to the left ( 0.1 / 0.9 ), while the left to right 90% Code> 0.9 ).
Comments
Post a Comment