ios - Separate two images joined using UIGraphicsBeginImageContext -
i can merge 2 images using uigraphicsbeginimagecontext
.
can reverse process? means can have 2 separate images back?
thanks
you can using cgimagecreatewithimageinrect method. since merged images, should know subregion need when trying separate or un-merge.
pass in cgimage first parameter image trying separate , cgrect second parameter.
cgimagecreatewithimageinrect(originalimage.cgimage, croprect);
Comments
Post a Comment