{"id":6328,"date":"2026-03-06T17:02:59","date_gmt":"2026-03-06T09:02:59","guid":{"rendered":"https:\/\/blog.coolcoding.cn\/?p=6328"},"modified":"2026-03-06T17:03:42","modified_gmt":"2026-03-06T09:03:42","slug":"ai%e4%bb%a3%e7%a0%81%e5%b8%a6%e6%9d%a5%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=6328","title":{"rendered":"AI\u4ee3\u7801\u5e26\u6765\u7684\u95ee\u9898"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>public static (int w, int h) ReadTgaSizeFast(string tgaFilePath)\n{\n\tusing (var fs = new FileStream(tgaFilePath, FileMode.Open, FileAccess.Read, FileShare.Read,\n\t    bufferSize: 4, FileOptions.SequentialScan | FileOptions.DeleteOnClose))\n\t{\n\t\tfs.Seek(12, SeekOrigin.Begin);\n\t\tbyte&#91;] buffer = new byte&#91;4];\n\t\tint readBytes = fs.Read(buffer, 0, 4);\n\t\tvar width = BitConverter.ToUInt16(buffer, 0);\n\t\tvar height = BitConverter.ToUInt16(buffer, 2);\n<\/code><\/pre>\n\n\n\n<p>\u7528deepseek\u5199\u7684\u8bfbTGA\u6587\u4ef6\u7684\u5927\u5c0f<\/p>\n\n\n\n<p>\u5f53\u8bfb\u53d6\u8fd9\u4e2aTGA\u540e\uff0c\u6587\u4ef6\u5c31\u4f1a\u88ab\u81ea\u52a8\u5220\u9664\uff0c\u4eba\u662f\u4e0d\u4f1a\u5199\u8fd9\u79cd\u4ee3\u7801\u7684\uff1b<\/p>\n\n\n\n<p>\u6240\u4ee5\u4f7f\u7528AI\u8981\u5c0f\u5fc3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528deepseek\u5199\u7684\u8bfbTGA\u6587\u4ef6\u7684\u5927\u5c0f \u5f53\u8bfb\u53d6\u8fd9\u4e2aTGA\u540e\uff0c\u6587\u4ef6\u5c31\u4f1a\u88ab\u81ea\u52a8\u5220\u9664\uff0c\u4eba\u662f\u4e0d\u4f1a\u5199\u8fd9\u79cd\u4ee3\u7801\u7684\uff1b \u6240\u4ee5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6328"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6328"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6328\/revisions"}],"predecessor-version":[{"id":6331,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6328\/revisions\/6331"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}