ios - Enlarge CGRect around existing point -


i using cgrect cut image out of imageview. rectangle generated automatically depending on features on imageview enlarge maybe 10% around same point.

to sizes of use frame this:

cgrect frame = _imageview.frame;       cgimageref imageref = cgimagecreatewithimageinrect([image cgimage], frame);     uiimage *img = [uiimage imagewithcgimage:imageref]; 

then change origin.x unable frame of existing rectangle.

any appreciated on expanding cgrect

have @ cgrectinset, think want. depending on sign of insets, can make rectangle that's smaller or larger original same center point.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -