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); 

apple doc cgimagecreatewithimageinrect


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -