{"categories":["D\u8a00\u8a9e"],"type":"rich","width":"100%","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F2023%2F03%2F19%2F175400\" title=\"BITMAPINFO\u304b\u3089\u753b\u50cf\u30c7\u30fc\u30bf\u5168\u4f53\u306e\u30d0\u30a4\u30ca\u30ea\u5217\u3092\u5f97\u308b - ...ing logging 4.0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"title":"BITMAPINFO\u304b\u3089\u753b\u50cf\u30c7\u30fc\u30bf\u5168\u4f53\u306e\u30d0\u30a4\u30ca\u30ea\u5217\u3092\u5f97\u308b","blog_url":"https://haru-s.hatenablog.com/","version":"1.0","provider_url":"https://hatena.blog","description":"\u304b\u306a\u308a\u624b\u3053\u305a\u3063\u305f\u306e\u3067\u7d50\u679c\u3060\u3051\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059\u3002 ubyte[] getBitmapBuffer(BITMAPINFO* pbi) { assert(pbi); const uint bitsPerPixel = pbi.bmiHeader.biPlanes * pbi.bmiHeader.biBitCount; const uint colorMaskBytes = { if (pbi.bmiHeader.biCompression == BI_BITFIELDS) return 4 * 3; // 4 bytes * 3 masks(R,G,B) else return 0; }(); con\u2026","blog_title":"...ing logging 4.0","height":"190","url":"https://haru-s.hatenablog.com/entry/2023/03/19/175400","author_url":"https://blog.hatena.ne.jp/haru-s/","author_name":"haru-s","published":"2023-03-19 17:54:00"}