🔍

首页Home › 图片工具Image Tools

🧱 整数列表转图片Create Image from Integers

把整数列表画成图片:按灰度(0–255)或 RGB 三元组填充像素,可指定宽度。适合把数据矩阵可视化,本地处理。Paint a list of integers as an image: greyscale values (0-255) or RGB triples, with a chosen width. Handy for visualizing data matrices. Processed locally.

使用说明与常见问题How-to & FAQ

「整数列表转图片」是什么?What is the Create Image from Integers tool?

把整数列表画成图片:按灰度(0–255)或 RGB 三元组填充像素,可指定宽度。适合把数据矩阵可视化,本地处理。Paint a list of integers as an image: greyscale values (0-255) or RGB triples, with a chosen width. Handy for visualizing data matrices. Processed locally.

如何使用「整数列表转图片」?How do I use the Create Image from Integers tool?

在「整数列表转图片」中,按需设置「宽度(像素)」、「模式」、「格式」等选项,然后点击「生成」、「下载」按钮即可。Paste integers from 0 to 255, either one value per pixel ("Mode" Greyscale) or three per pixel ("Mode" RGB triples), set the image "Width (px)" and choose the "Format". Click "Generate" to build the image and "Download" to save it.

灰度值范围?What range for greyscale?

按 0–255 解释;小于 0 当 0,大于 255 当 255。Values are read as 0-255; below 0 becomes 0 and above 255 becomes 255.

RGB 模式怎样排?How does RGB mode order values?

每三个整数是一个像素的 R、G、B,按行从左到右、从上到下。Every three integers are one pixel R, G, B, row-major left to right, top to bottom.

输入格式和下载的像素准确吗?Is the input strict and the download exact?

每个值必须是整数(可用空格、逗号、换行分隔,负号可用 − 或全角 -);1.5、1e3、x 之类会报错并指出是第几个,不会被拆开或忽略。PNG 由页面自己按原值编码,0–255 的值逐像素原样保存(不经过浏览器的颜色转换)。最后一行没填满时,剩下的位置是透明像素。Every value must be an integer (separate with spaces, commas or line breaks; minus can be − or fullwidth -). Values like 1.5, 1e3 or x give an error naming the position instead of being split or skipped. The PNG is encoded by the page itself, so each 0–255 value is stored exactly with no browser colour conversion. If the last row is not full, the remaining pixels are transparent.

WebP 输出也精确吗?Is WebP output exact too?

不一定。WebP 由浏览器的编码器生成,是有损压缩,个别像素可能偏差 1–2(例如 255 变成 254)。需要逐像素精确的数值请选 PNG;WebP 适合只看图的场合,文件通常更小。Not always. WebP comes from the browser's encoder and is lossy, so some pixels can drift by 1 or 2 (255 may come out as 254). Choose PNG when every value must be exact; WebP suits viewing and is usually smaller.

改了数字后下载的是哪张?Which image is downloaded after editing?

总是当前输入:改了数字还没点「生成」时,点「下载」会先按新内容重新生成再下载。预览按整数倍放大显示(像素保持清晰),下载的图片仍是原始尺寸。Always the current input: if you edited the numbers without clicking Generate, Download regenerates first. The preview is scaled up by a whole factor (pixels stay sharp); the downloaded file keeps the original size.

有哪些选项可以调整?What options can I adjust?

「整数列表转图片」有三个设置:「宽度(像素)」默认 16;「模式」可选 灰度 或 RGB 三元组(默认 灰度);「格式」可选 PNG(无损,数值精确)或 WebP(有损,数值可能偏差 1–2),默认 PNG。改动任一选项后结果会按新设置重新生成。There are three settings: "Width (px)" (default 16); "Mode", Greyscale or RGB triples (default Greyscale); and "Format", PNG (lossless, exact) or WebP (lossy, values may drift by 1–2), default PNG. Changing any option regenerates the image with the new setting.

「整数列表转图片」免费吗?需要注册吗?Is the Create Image from Integers free? Do I need an account?

「整数列表转图片」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Create Image from Integers 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

🧱 字节转图片(Hex / Base64 / 原始像素还原图片)Create Image from Bytes (Hex, Base64, Raw Pixels)🖌️ RGB 数值转图片(把颜色值画成像素图)Convert RGB Values to Image➖ 生成康托尔集(梳状图)Generate Cantor Set⫴ 生成非对称康托尔集Generate Asymmetric Cantor Set▦ 生成康托尔尘Generate Cantor Dust∠ 生成切萨罗分形Generate Cesàro Fractal❄ 生成切萨罗多边雪花Generate Cesàro Polyflake🐉 生成龙曲线Generate Dragon Curve𝑭 生成斐波那契词分形Generate Fibonacci Word Fractal➖ 生成广义康托尔集Generate Generalized Cantor Set⬡ 生成戈斯珀曲线Generate Gosper CurveH 生成 H 分形(H 树)Generate H Fractal

← 全部工具All tools