🎨 位图换色(替换 BMP 中的指定颜色)Change Bitmap Colours (Replace a Colour in a BMP)
把位图(BMP)或其他图片里的某种颜色换成另一种颜色:选择要替换的颜色和新颜色,用容差同时匹配相近的颜色(例如压缩后不纯的白底),也可以保留原来的明暗细节,只整体改变色调。会显示替换了多少个像素。默认导出 24 位 BMP,也可以导出 PNG,支持批量,图片只在浏览器本地处理。Replace one colour in a bitmap (BMP) or any other image with another. Pick the colour to replace and the new colour, use the tolerance to catch similar shades too (such as an off-white background from compression), and optionally keep the original light and shade so only the hue shifts. The tool tells you how many pixels changed. The result is a 24-bit BMP by default, or PNG; works in bulk, and images are processed locally in your browser.
使用说明与常见问题How-to & FAQ
「位图换色(替换 BMP 中的指定颜色)」是什么?What is the Change Bitmap Colours (Replace a Colour in a BMP) tool?
把位图(BMP)或其他图片里的某种颜色换成另一种颜色:选择要替换的颜色和新颜色,用容差同时匹配相近的颜色(例如压缩后不纯的白底),也可以保留原来的明暗细节,只整体改变色调。会显示替换了多少个像素。默认导出 24 位 BMP,也可以导出 PNG,支持批量,图片只在浏览器本地处理。Replace one colour in a bitmap (BMP) or any other image with another. Pick the colour to replace and the new colour, use the tolerance to catch similar shades too (such as an off-white background from compression), and optionally keep the original light and shade so only the hue shifts. The tool tells you how many pixels changed. The result is a 24-bit BMP by default, or PNG; works in bulk, and images are processed locally in your browser.
如何使用「位图换色(替换 BMP 中的指定颜色)」?How do I use the Change Bitmap Colours (Replace a Colour in a BMP) tool?
在「位图换色(替换 BMP 中的指定颜色)」中,选择或拖入文件,按需设置「要替换的颜色」、「替换成」、「容差」、「输出格式」等选项,然后点击每个结果旁的「下载」按钮即可;有多个文件时也可以点「全部下载(ZIP)」一次打包下载。In the Change Bitmap Colours (Replace a Colour in a BMP): Choose or drop your files, set "Colour to replace", "Replace with", "Tolerance", "Format", then click the Download button next to each result (with several files, "Download all (ZIP)" saves them together).
容差怎么设置?How should I set the tolerance?
容差是允许和“要替换的颜色”相差多少(0% = 只换完全相同的颜色,100% = 所有颜色)。JPG 等有损压缩的图片里,看起来纯白的背景往往是 250–254 之间的近似值,把容差调到 5%–15% 通常就能全部换掉;容差太大会连带改掉相近的其他颜色。The tolerance sets how far a colour may be from the colour to replace (0% = only that exact colour, 100% = every colour). In lossy images such as JPG a background that looks pure white is often 250–254, so 5%–15% usually catches it all; too high a value also changes similar colours you meant to keep.
“保留明暗细节”是什么意思?What does Keep shading do?
不勾选时,匹配到的像素都会变成同一种新颜色;勾选后,每个像素保留它和“要替换的颜色”之间的差值,例如浅灰的阴影会变成浅一点的新颜色,适合给有渐变或抗锯齿边缘的图形换色。透明像素不会被替换,透明度保持不变(导出 BMP 时透明部分填成白色)。Without it every matching pixel becomes exactly the new colour. With it each pixel keeps its difference from the colour to replace, so a slightly darker shade becomes a slightly darker version of the new colour — good for graphics with gradients or anti-aliased edges. Fully transparent pixels are never changed and transparency is kept (BMP output fills transparent areas with white).
有哪些选项可以调整?What options can I adjust?
「位图换色(替换 BMP 中的指定颜色)」的设置:「要替换的颜色」默认 #ffffff;「替换成」默认 #ff0000;「容差」默认 10,范围 0–100;「输出格式」可选 BMP、PNG(默认 BMP);可勾选:「保留明暗细节」;可选文件:常见图片格式(含 HEIC、HEIF、AVIF、WEBP、BMP、JFIF)。改动任一选项后结果会按新设置重新生成。Settings in the Change Bitmap Colours (Replace a Colour in a BMP) — "Colour to replace" default #ffffff; "Replace with" default #ff0000; "Tolerance" default 10, range 0–100; "Format": BMP, PNG (default BMP); tick boxes: "Keep shading"; files: common image formats (including HEIC, HEIF, AVIF, WEBP, BMP, JFIF). Changing any option regenerates the result with the new setting.
图片会被上传到服务器吗?Are my images uploaded?
不会。「位图换色(替换 BMP 中的指定颜色)」使用浏览器 Canvas 在本地处理图片,处理后的文件直接从你的浏览器下载。No. The Change Bitmap Colours (Replace a Colour in a BMP) processes images locally with the browser Canvas API and the result downloads straight from your browser.
「位图换色(替换 BMP 中的指定颜色)」免费吗?需要注册吗?Is the Change Bitmap Colours (Replace a Colour in a BMP) free? Do I need an account?
「位图换色(替换 BMP 中的指定颜色)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Change Bitmap Colours (Replace a Colour in a BMP) is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.