🔢 位图转字节数组Convert Bitmap to Byte Array
导出 RGBA 字节(用于核对前几个像素)。可设置「输出格式」、「质量」。Export RGBA bytes (spot-check the first pixels). Settings: Format, Quality.
使用说明与常见问题How-to & FAQ
「位图转字节数组」是什么?What is the Convert Bitmap to Byte Array tool?
导出 RGBA 字节(用于核对前几个像素)。可设置「输出格式」、「质量」。Export RGBA bytes (spot-check the first pixels). Settings: Format, Quality.
如何使用「位图转字节数组」?How do I use the Convert Bitmap to Byte Array tool?
在「位图转字节数组」中,选择或拖入文件,按需设置「输出格式」等选项,然后点击每个结果旁的「下载」按钮即可;有多个文件时也可以点「全部下载(ZIP)」一次打包下载。In the Convert Bitmap to Byte Array: Choose or drop your files, set "Format", then click the Download button next to each result (with several files, "Download all (ZIP)" saves them together).
字节是什么顺序?What order are the bytes in?
从左上角开始逐行、逐像素输出,每个像素 4 个字节,顺序为 R、G、B、A(各 0–255),与 Canvas getImageData 的格式相同。页面只显示开头若干像素用于抽查。Pixels go row by row from the top-left, four bytes each in R, G, B, A order (0–255 each), the same as Canvas getImageData. The page shows only the first pixels for spot-checking.
有哪些选项可以调整?What options can I adjust?
「位图转字节数组」的设置:「输出格式」可选 PNG、JPG、WebP(默认 PNG);「质量」默认 92,范围 40–100;可选文件:常见图片格式(含 HEIC、HEIF、AVIF、WEBP、BMP、JFIF)。每次生成结果都按当前设置处理。Settings in the Convert Bitmap to Byte Array — "Format": PNG, JPG, WebP (default PNG); "Quality" default 92, range 40–100; files: common image formats (including HEIC, HEIF, AVIF, WEBP, BMP, JFIF). The result always uses the current settings.
图片会被上传到服务器吗?Are my images uploaded?
不会。「位图转字节数组」使用浏览器 Canvas 在本地处理图片,处理后的文件直接从你的浏览器下载。No. The Convert Bitmap to Byte Array processes images locally with the browser Canvas API and the result downloads straight from your browser.
「位图转字节数组」免费吗?需要注册吗?Is the Convert Bitmap to Byte Array free? Do I need an account?
「位图转字节数组」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Convert Bitmap to Byte Array is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.