Question

I want to set the custom coordinate to crop video.But i don't know how to set the x and y value in this or how to pass values in the function

CGAffineTransformMake(CGFloat a, CGFloat b, CGFloat c, CGFloat d,
  CGFloat tx, CGFloat ty)

I searched everywhere but everyone is saying that it creates a matrix in the background,but i have nothing to do with the matrix, i just want to set the values of X and Y. Can anyone please suggest me the correct explanation with example.It would be a great help for me. Thanks in Advance

Was it helpful?

Solution

You can try like this.

CGAffineTransform transform = CGAffineTransformMakeScale(give what scale you want,give what scale you want)

Hope it helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top