ios - How to zoom in and scale uiimage -


im new cropping images in xcode, , in app take picture, , put picture uiimage in circler form. want zoom in or move image while image in circler view save final uiimage. have far is

calayer *imagelayer= imageview.layer; imageview.layer.cornerradius =imageview.frame.size.height/2; [imagelayer setborderwidth:.5]; [imagelayer setmaskstobounds:yes]; [self.view addsubview:imageview]; 

please possible! im confused.

following code creates subimage rect rectangle of your_image zooming parameter scale

cgimageref imageref = cgimagecreatewithimageinrect([your_image cgimage], rect); uiimage *subimage = [uiimage imagewithcgimage:imageref scale:scale orientation:your_image.imageorientation]; cgimagerelease(imageref); 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -