{"id":6373,"date":"2012-10-16T11:02:12","date_gmt":"2012-10-16T16:02:12","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6373"},"modified":"2012-10-16T11:23:43","modified_gmt":"2012-10-16T16:23:43","slug":"coregraphics-patterns-and-resolution-independence","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/10\/16\/coregraphics-patterns-and-resolution-independence\/","title":{"rendered":"CoreGraphics, Patterns and Resolution Independence"},"content":{"rendered":"<p><a href=\"http:\/\/blog.metaobject.com\/2012\/10\/coregraphics-patterns-and-resolution.html\">Marcel Weiher<\/a>:<\/p>\n<blockquote cite=\"http:\/\/blog.metaobject.com\/2012\/10\/coregraphics-patterns-and-resolution.html\"><p>With all the graphics specified using pure geometry, CoreGraphics can now do its thing and automatically handle varying device resolutions, wether it&rsquo;s a retina display or a zoomable interface or even print, all without ever having to deal with the different resolutions in code. Although I haven&rsquo;t tested it, the code should also use less memory, because it doesn&rsquo;t create potentially large temporary bitmaps, and for the cherry on top it&rsquo;s also a fraction of the code.<\/p><\/blockquote>\n<p>It&rsquo;s tempting to rewrite my graphics code in his <a href=\"https:\/\/github.com\/mpw\/MPWDrawingContext\">MPWDrawingContext<\/a> style.<\/p>","protected":false},"excerpt":{"rendered":"<p>Marcel Weiher: With all the graphics specified using pure geometry, CoreGraphics can now do its thing and automatically handle varying device resolutions, wether it&rsquo;s a retina display or a zoomable interface or even print, all without ever having to deal with the different resolutions in code. Although I haven&rsquo;t tested it, the code should also [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,31,30,71,178],"class_list":["post-6373","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-ios","tag-mac","tag-programming","tag-quartz"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6373"}],"version-history":[{"count":6,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6373\/revisions"}],"predecessor-version":[{"id":6389,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6373\/revisions\/6389"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}