{"id":212,"date":"2018-11-12T13:14:14","date_gmt":"2018-11-12T11:14:14","guid":{"rendered":"https:\/\/www.cipv6.de\/worp\/?p=212"},"modified":"2018-11-12T13:15:10","modified_gmt":"2018-11-12T11:15:10","slug":"android-canvas-put-bitmap-in-the-middle-of-the-screen","status":"publish","type":"post","link":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/","title":{"rendered":"Android Canvas: put Bitmap in the middle of the screen"},"content":{"rendered":"<p>Code:<\/p>\n<p>[java]<\/p>\n<p>canvas.drawBitmap(bitmap, (getMeasuredWidth()\/2)-(bitmap.getWidth()\/2), (getMeasuredHeight()\/2 -(bitmap.getHeight()\/2)), null);<\/p>\n<p>[\/java]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Code: [java] canvas.drawBitmap(bitmap, (getMeasuredWidth()\/2)-(bitmap.getWidth()\/2), (getMeasuredHeight()\/2 -(bitmap.getHeight()\/2)), null); [\/java]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[39,49,59],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-android","tag-java","tag-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android Canvas: put Bitmap in the middle of the screen - cipv6.de<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Canvas: put Bitmap in the middle of the screen - cipv6.de\" \/>\n<meta property=\"og:description\" content=\"Code: [java] canvas.drawBitmap(bitmap, (getMeasuredWidth()\/2)-(bitmap.getWidth()\/2), (getMeasuredHeight()\/2 -(bitmap.getHeight()\/2)), null); [\/java]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/\" \/>\n<meta property=\"og:site_name\" content=\"cipv6.de\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-12T11:14:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-12T11:15:10+00:00\" \/>\n<meta name=\"author\" content=\"ugu5ma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ugu5ma\" \/>\n<meta name=\"twitter:site\" content=\"@ugu5ma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ugu5ma\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/\"},\"author\":{\"name\":\"ugu5ma\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"headline\":\"Android Canvas: put Bitmap in the middle of the screen\",\"datePublished\":\"2018-11-12T11:14:14+00:00\",\"dateModified\":\"2018-11-12T11:15:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/\"},\"wordCount\":25,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"keywords\":[\"Android\",\"java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/\",\"url\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/\",\"name\":\"Android Canvas: put Bitmap in the middle of the screen - cipv6.de\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#website\"},\"datePublished\":\"2018-11-12T11:14:14+00:00\",\"dateModified\":\"2018-11-12T11:15:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2018\\\/11\\\/12\\\/android-canvas-put-bitmap-in-the-middle-of-the-screen\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android Canvas: put Bitmap in the middle of the screen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#website\",\"url\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/\",\"name\":\"cipv6.de\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\",\"name\":\"ugu5ma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"caption\":\"ugu5ma\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/cipv6.de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Canvas: put Bitmap in the middle of the screen - cipv6.de","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/","og_locale":"en_US","og_type":"article","og_title":"Android Canvas: put Bitmap in the middle of the screen - cipv6.de","og_description":"Code: [java] canvas.drawBitmap(bitmap, (getMeasuredWidth()\/2)-(bitmap.getWidth()\/2), (getMeasuredHeight()\/2 -(bitmap.getHeight()\/2)), null); [\/java]","og_url":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/","og_site_name":"cipv6.de","article_published_time":"2018-11-12T11:14:14+00:00","article_modified_time":"2018-11-12T11:15:10+00:00","author":"ugu5ma","twitter_card":"summary_large_image","twitter_creator":"@ugu5ma","twitter_site":"@ugu5ma","twitter_misc":{"Written by":"ugu5ma"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/#article","isPartOf":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/"},"author":{"name":"ugu5ma","@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"headline":"Android Canvas: put Bitmap in the middle of the screen","datePublished":"2018-11-12T11:14:14+00:00","dateModified":"2018-11-12T11:15:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/"},"wordCount":25,"commentCount":0,"publisher":{"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"keywords":["Android","java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/","url":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/","name":"Android Canvas: put Bitmap in the middle of the screen - cipv6.de","isPartOf":{"@id":"https:\/\/www.cipv6.de\/worp\/#website"},"datePublished":"2018-11-12T11:14:14+00:00","dateModified":"2018-11-12T11:15:10+00:00","breadcrumb":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cipv6.de\/worp\/"},{"@type":"ListItem","position":2,"name":"Android Canvas: put Bitmap in the middle of the screen"}]},{"@type":"WebSite","@id":"https:\/\/www.cipv6.de\/worp\/#website","url":"https:\/\/www.cipv6.de\/worp\/","name":"cipv6.de","description":"","publisher":{"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cipv6.de\/worp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d","name":"ugu5ma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","caption":"ugu5ma"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g"},"sameAs":["https:\/\/cipv6.de"]}]}},"_links":{"self":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":0,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}