{"id":146,"date":"2016-02-18T15:21:12","date_gmt":"2016-02-18T15:21:12","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=146"},"modified":"2022-02-17T06:24:14","modified_gmt":"2022-02-17T06:24:14","slug":"picture-box-display-image","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/picturebox\/picture-box-display-image","title":{"rendered":".Picture Box Display Image"},"content":{"rendered":"<h4>\n\tClear PictureBox Image<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tpbMyImage.Image = null;\r\n<\/code><\/pre>\n<h4>\n\tDisplay image from byte array<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\t\/\/Display the byte array\r\n\tMemoryStream mStream = new MemoryStream();\r\n\tmStream.Write(MyImageByteArray, 0, Convert.ToInt32(MyImageByteArray.Length));\r\n\tBitmap bm = new Bitmap(mStream, false);\r\n\tmStream.Dispose();\r\n\tpbNameImage.Image = bm;\r\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Clear PictureBox Image pbMyImage.Image = null; Display image from byte array \/\/Display the byte array MemoryStream mStream = new MemoryStream(); mStream.Write(MyImageByteArray, 0, Convert.ToInt32(MyImageByteArray.Length)); Bitmap bm = new Bitmap(mStream, false); mStream.Dispose(); pbNameImage.Image = bm; &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-picturebox"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/146\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}