{"id":62,"date":"2016-09-30T22:44:46","date_gmt":"2016-10-01T03:44:46","guid":{"rendered":"https:\/\/chibicode.org\/?p=62"},"modified":"2016-09-30T22:44:46","modified_gmt":"2016-10-01T03:44:46","slug":"new-core-image-filters-in-ios-10","status":"publish","type":"post","link":"https:\/\/chibicode.org\/?p=62","title":{"rendered":"New Core Image filters in iOS 10"},"content":{"rendered":"<p>Unlike the tidal wave of new filters we saw in iOS 9, we only get 6 new filters in iOS 10. Here is our source image, a fetching portrait of Sir Jony Ive receiving his knighthood. <em>Click any of the images to view the full-sized version.<\/em><\/p>\n<p><a href=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/Unmodified.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/Unmodified-300x200.jpg\" alt=\"unmodified\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-71\" srcset=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/Unmodified-300x200.jpg 300w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/Unmodified-768x512.jpg 768w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/Unmodified-1024x682.jpg 1024w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/Unmodified.jpg 1099w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<h2>CIClamp<\/h2>\n<p>CIClamp is very similar to CIAffineClamp, except without the applied Affine Transform. The main input parameter is a rect which defines the image region which is unmodified. Everything outside that rect is just repeated edge pixels.<br \/>\n<a href=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIClamp.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIClamp-300x200.jpg\" alt=\"ciclamp\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-65\" srcset=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIClamp-300x200.jpg 300w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIClamp-768x512.jpg 768w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIClamp-1024x682.jpg 1024w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIClamp.jpg 1099w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<h2>CIHueSaturationValueGradient<\/h2>\n<p>This filter is capable of producing a color wheel of arbitrary size. Input parameters include the radius of the wheel and the color space used. Very handy if you want to create a color picker tool in your app. <em>Note: The color wheel is bottom-left aligned within the image bounds because Core Image&#8217;s origin point is the bottom-left corner, not the top-left corner as in UIKit.<\/em><br \/>\n<a href=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIHueSaturationValueGradient.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIHueSaturationValueGradient-300x200.jpg\" alt=\"cihuesaturationvaluegradient\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-66\" srcset=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIHueSaturationValueGradient-300x200.jpg 300w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIHueSaturationValueGradient-768x512.jpg 768w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIHueSaturationValueGradient-1024x682.jpg 1024w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIHueSaturationValueGradient.jpg 1099w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<h2>CINinePartStretched<\/h2>\n<p>Specify a 9-part region in an image and it can be scaled up just like the image slicing in the Asset Catalog.<br \/>\n<a href=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartStretched.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartStretched-300x200.jpg\" alt=\"cininepartstretched\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-67\" srcset=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartStretched-300x200.jpg 300w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartStretched-768x512.jpg 768w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartStretched-1024x682.jpg 1024w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartStretched.jpg 1099w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<h2>CINinePartTiled<\/h2>\n<p>Similar to above, the slice pixels are tiled rather than being stretched. This would be more applicable to things like custom interface frames than photographs of people.<br \/>\n<a href=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartTiled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartTiled-300x200.jpg\" alt=\"cinineparttiled\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-68\" srcset=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartTiled-300x200.jpg 300w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartTiled-768x512.jpg 768w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartTiled-1024x682.jpg 1024w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CINinePartTiled.jpg 1099w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<h2>CIThermal<\/h2>\n<p>Available for years as part of the Photo Booth app, developers now have access to the faux thermal imaging effect.<br \/>\n<a href=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIThermal.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIThermal-300x200.jpg\" alt=\"cithermal\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-69\" srcset=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIThermal-300x200.jpg 300w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIThermal-768x512.jpg 768w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIThermal-1024x682.jpg 1024w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIThermal.jpg 1099w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<h2>CIXRay<\/h2>\n<p>Also a long-time part of Photo Booth, the faux X-ray filter is now available to everyone.<br \/>\n<a href=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIXRay.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIXRay-300x200.jpg\" alt=\"cixray\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-70\" srcset=\"https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIXRay-300x200.jpg 300w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIXRay-768x512.jpg 768w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIXRay-1024x682.jpg 1024w, https:\/\/chibicode.org\/wp-content\/uploads\/2016\/09\/CIXRay.jpg 1099w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unlike the tidal wave of new filters we saw in iOS 9, we only get 6 new filters in iOS 10. Here is our source image, a fetching portrait of Sir Jony Ive receiving his knighthood. Click any of the images to view the full-sized version. CIClamp CIClamp is very similar to CIAffineClamp, except without &hellip; <a href=\"https:\/\/chibicode.org\/?p=62\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;New Core Image filters in iOS 10&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-code"],"_links":{"self":[{"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chibicode.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=62"}],"version-history":[{"count":6,"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/chibicode.org\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions\/76"}],"wp:attachment":[{"href":"https:\/\/chibicode.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chibicode.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chibicode.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}