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
Post a Comment