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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -