🔍

首页Home › 图片工具Image Tools

🖥️ 位图转 VGA 颜色(16 色 / 256 色调色板 BMP)Convert Bitmap to VGA Colours (16 & 256-Colour Palette)

把位图(BMP)或其他图片转换成经典 VGA 调色板的颜色:16 色(DOS 默认的 EGA/VGA 文本模式颜色)或 256 色(VGA 13h 模式的默认调色板,含 16 色、16 级灰度和 216 种色相渐变),可选不抖动或 Floyd–Steinberg 误差扩散抖动,复古 DOS 游戏风格。导出 BMP 时生成真正的 4 位(16 色)或 8 位(256 色)索引色位图,调色板与 VGA 完全一致,可直接用于老式程序和 DOS 开发;也可以导出 PNG。支持批量,图片只在浏览器本地处理。Convert a bitmap (BMP) or any other image to the classic VGA palette: 16 colours (the default DOS EGA/VGA text-mode colours) or 256 colours (the default palette of VGA mode 13h, with the 16 colours, 16 greys and 216 hue ramps), with no dithering or Floyd–Steinberg error diffusion for that retro DOS-game look. BMP output is a true 4-bit (16-colour) or 8-bit (256-colour) indexed bitmap whose palette matches VGA exactly, ready for old software and DOS development; PNG is also available. Works in bulk, and images are processed locally in your browser.

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

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

「位图转 VGA 颜色(16 色 / 256 色调色板 BMP)」是什么?What is the Convert Bitmap to VGA Colours (16 & 256-Colour Palette) tool?

把位图(BMP)或其他图片转换成经典 VGA 调色板的颜色:16 色(DOS 默认的 EGA/VGA 文本模式颜色)或 256 色(VGA 13h 模式的默认调色板,含 16 色、16 级灰度和 216 种色相渐变),可选不抖动或 Floyd–Steinberg 误差扩散抖动,复古 DOS 游戏风格。导出 BMP 时生成真正的 4 位(16 色)或 8 位(256 色)索引色位图,调色板与 VGA 完全一致,可直接用于老式程序和 DOS 开发;也可以导出 PNG。支持批量,图片只在浏览器本地处理。Convert a bitmap (BMP) or any other image to the classic VGA palette: 16 colours (the default DOS EGA/VGA text-mode colours) or 256 colours (the default palette of VGA mode 13h, with the 16 colours, 16 greys and 216 hue ramps), with no dithering or Floyd–Steinberg error diffusion for that retro DOS-game look. BMP output is a true 4-bit (16-colour) or 8-bit (256-colour) indexed bitmap whose palette matches VGA exactly, ready for old software and DOS development; PNG is also available. Works in bulk, and images are processed locally in your browser.

如何使用「位图转 VGA 颜色(16 色 / 256 色调色板 BMP)」?How do I use the Convert Bitmap to VGA Colours (16 & 256-Colour Palette) tool?

在「位图转 VGA 颜色(16 色 / 256 色调色板 BMP)」中,选择或拖入文件,按需设置「调色板」、「抖动」、「输出格式」等选项,然后点击每个结果旁的「下载」按钮即可;有多个文件时也可以点「全部下载(ZIP)」一次打包下载。In the Convert Bitmap to VGA Colours (16 & 256-Colour Palette): Choose or drop your files, set "Palette", "Dithering", "Format", then click the Download button next to each result (with several files, "Download all (ZIP)" saves them together).

16 色和 256 色有什么区别?What is the difference between 16 and 256 colours?

16 色是 DOS 文本模式和 EGA 图形的经典颜色(黑、蓝、绿、青、红、品红、棕、浅灰及它们的亮色),适合复古像素风;256 色是 VGA 13h 模式(320×200,大量 DOS 游戏使用)开机时的默认调色板:前 16 色同上,接着 16 级灰度,然后是按亮度和饱和度排列的 216 种色相,最后 8 个是黑色。工具使用的是与 VGA 硬件完全一致的默认值(6 位色值换算成 8 位)。16 colours are the classic DOS text-mode and EGA colours (black, blue, green, cyan, red, magenta, brown, light grey and their bright versions) — great for retro pixel art. 256 colours is the power-on default palette of VGA mode 13h (320×200, used by countless DOS games): the same 16 colours, then 16 greys, then 216 hues arranged by brightness and saturation, and finally 8 blacks. The tool uses exactly the VGA hardware defaults (6-bit values scaled to 8 bits).

要不要开抖动?Should I use dithering?

不抖动时每个像素直接换成最接近的调色板颜色,色块干净但渐变会出现明显的色带;Floyd–Steinberg 抖动把误差分散到相邻像素,用交错的点模拟中间色,照片和渐变看起来更自然,也更有当年 DOS 游戏的味道。像素画和图标一般不抖动。Without dithering each pixel becomes the nearest palette colour: flat areas stay clean but gradients show visible bands. Floyd–Steinberg spreads the error to neighbouring pixels, imitating in-between colours with a pattern of dots, so photos and gradients look more natural — and more like a period DOS game. Pixel art and icons usually look best without it.

导出的 BMP 是什么格式?What kind of BMP is produced?

16 色时是 4 位索引色 BMP(每像素半个字节,调色板 16 色),256 色时是 8 位索引色 BMP(调色板 256 色),调色板顺序与 VGA 一致,颜色编号可以直接对应 DOS 程序里的颜色号。BMP 和 VGA 都没有透明,透明部分会填成白色。With 16 colours it is a 4-bit indexed BMP (half a byte per pixel, 16-entry palette); with 256 colours an 8-bit indexed BMP (256-entry palette). The palette order matches VGA, so colour numbers correspond directly to the colour numbers used in DOS programs. Neither BMP nor VGA has transparency, so transparent areas are filled with white.

支持哪些图片?会上传吗?Which images work, and are they uploaded?

支持 JPG、PNG、WebP、GIF(静态或动图的第一帧)、BMP、AVIF、HEIC,以及浏览器能打开的 SVG;可一次拖入最多 50 张批量处理,单张最大 60 MB、1 亿像素;多张结果可打包成 ZIP 下载。所有处理都在你的浏览器里完成,图片不会上传,结果中也不会保留 EXIF 等元数据(包括拍摄位置)。JPG, PNG, WebP, GIF (a still or the first frame of an animation), BMP, AVIF, HEIC, and SVG that the browser can open. Drop in up to 50 images at once; each can be up to 60 MB and 100 megapixels, and several results can be downloaded as a ZIP. Everything happens in your browser: images are not uploaded, and EXIF and other metadata (including location) is not kept in the results.

「位图转 VGA 颜色(16 色 / 256 色调色板 BMP)」免费吗?需要注册吗?Is the Convert Bitmap to VGA Colours (16 & 256-Colour Palette) free? Do I need an account?

「位图转 VGA 颜色(16 色 / 256 色调色板 BMP)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Convert Bitmap to VGA Colours (16 & 256-Colour Palette) 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

👾 图片复古配色(Game Boy / NES / C64 / PICO-8 调色板)Convert Image to Retro Colours (Game Boy, NES, C64, PICO-8)🌑 位图转灰度(导出 8 位灰度 BMP)Convert Bitmap to Grayscale🔢 位图转十六进制(BMP 像素 HEX 颜色 / C 数组)Convert Bitmap to Hex🔣 位图转 RGB 数值(BMP 像素颜色值导出)Convert Bitmap to RGB Values🎞️ 动画转位图精灵图(GIF 拆帧拼成 Sprite Sheet)Convert Animation to Bitmap Sprites🔄 RGB 位图转 BGR(交换红蓝通道)Convert RGB Bitmap to BGR Bitmap✂️ 位图裁剪(按像素或百分比裁剪 BMP)Crop a Bitmap↔️ 位图水平翻转(左右镜像 BMP)Flip a Bitmap Horizontally↕️ 位图垂直翻转(上下颠倒 BMP)Flip a Bitmap Vertically🌗 位图反色(BMP 负片效果)Invert Bitmap Colours🎚️ 位图减色(减少 BMP 颜色数 / 索引色)Reduce Bitmap Colours🔲 去除位图边框(自动裁掉 BMP 四周的纯色边)Remove a Bitmap Border

← 全部工具All tools