ios - How to put CGContextScaleCTM and CGContextTranslateCTM outside of drawRect? -



ios - How to put CGContextScaleCTM and CGContextTranslateCTM outside of drawRect? -

i rather beginner @ kind of path drawing, when displaying map, realised cgcontextscalectm , cgcontexttranslatectm take lot of time within drawrect. bring outside. since draw same map, think should possible. how?

could scale this:

cgaffinetransform currenttransform = myview.transform; cgaffinetransform newtransform = cgaffinetransformscale(currenttransform, 0.5, 0.5); [myview settransform:newtransform];

and utilize cgaffinetransformtranslate in similar manner x/y.

ios drawrect cgcontext scaletransform

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -