🔍

首页Home › 图片工具Image Tools

🔢 位图转字节数组Convert Bitmap to Byte Array

导出 RGBA 字节(用于核对前几个像素)。可设置「输出格式」、「质量」。Export RGBA bytes (spot-check the first pixels). Settings: Format, Quality.

点击选择或拖放图片(可多选)Click or drop images here (multiple allowed)

使用说明与常见问题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.

相关工具Related tools

🖼️ Base64 解码位图Base64 Decode Bitmap➖ 康托尔分形(康托尔梳)Draw a Cantor Fractal⬚ 康托尔尘分形Draw a Cantor Dust Fractal❄️ 科赫分形(雪花 / 反雪花 / 折线)Draw a Koch Fractal∟ 莱维 C 曲线分形Draw a Lévy Fractal🐉 海威龙分形(折纸龙)Draw a Heighway Fractal🐉 双海威龙分形Draw a Twin Heighway Fractal🔺 三角龙分形Draw a Triangle Dragon FractalH 豪斯多夫分形(H 树)Draw a Hausdorff Fractal▤ T 方形分形Draw a T-Square Fractal🧊 冰晶分形(弗罗斯蒂)Draw a Frosty Fractal⬡ 流蛇分形(戈斯珀曲线)Draw a Flowsnake Fractal

← 全部工具All tools