我正在创建一个从真彩色图像生成调色板的程序,需要一些文件格式的帮助

时间:2022-05-11 09:00:17

Im creating a program that generates a palette from a true color image, I need some help with some file formats

我正在创建一个从真彩色图像生成调色板的程序,我需要一些文件格式的帮助

It already creates a photoshop cs3 palette

它已经创建了一个photoshop cs3调色板

i haven't found any info on how to make a Paintshop pro 8 palette or a gimp palette

我还没有找到关于如何制作Paintshop pro 8调色板或gimp调色板的任何信息

plus i would be happy to look up any other art program palette types to improve compatibility with my program

另外,我很乐意查找任何其他艺术程序调色板类型,以提高与我的程序的兼容性

3 个解决方案

#1


GIMP palettes are just text files. Assuming you're pulling RGB values, you generate a text file like this:

GIMP调色板只是文本文件。假设您正在拉取RGB值,则生成如下文本文件:

GIMP Palette
Name: custompalette
Columns: 4
#
  0   0   0     Index 3
 65  38  30     Index 4
103  62  49     Index 6
 79  73  72     Index 7
114 101  97     Index 8
208 127 100     Index 9 
151 144 142     Index 10
221 207 199     Index 11

#2


For PSP palettes: .pal file extension

对于PSP调色板:.pal文件扩展名

According to the GIMP's documentation, the .gpl file format is in ASCII so it shouldn't be difficult to create a convertor by looking at the file itself.

根据GIMP的文档,.gpl文件格式是ASCII格式,因此通过查看文件本身来创建转换器应该不难。

#3


Paint.NET palettes are easy. It's a .txt with each line being a hex-color (AARRGGBB). Semicolons (;) are comments. Example:

Paint.NET调色板很简单。它是一个.txt,每行是一个十六进制颜色(AARRGGBB)。分号(;)是注释。例:

;comment
FF000000
FFFFFFFF
00000000

GIMP uses an ASCII plaintext format with extension .gpl. Take a peek with your favorite notepad program.

GIMP使用扩展名为.gpl的ASCII纯文本格式。看看你最喜欢的记事本程序。

#1


GIMP palettes are just text files. Assuming you're pulling RGB values, you generate a text file like this:

GIMP调色板只是文本文件。假设您正在拉取RGB值,则生成如下文本文件:

GIMP Palette
Name: custompalette
Columns: 4
#
  0   0   0     Index 3
 65  38  30     Index 4
103  62  49     Index 6
 79  73  72     Index 7
114 101  97     Index 8
208 127 100     Index 9 
151 144 142     Index 10
221 207 199     Index 11

#2


For PSP palettes: .pal file extension

对于PSP调色板:.pal文件扩展名

According to the GIMP's documentation, the .gpl file format is in ASCII so it shouldn't be difficult to create a convertor by looking at the file itself.

根据GIMP的文档,.gpl文件格式是ASCII格式,因此通过查看文件本身来创建转换器应该不难。

#3


Paint.NET palettes are easy. It's a .txt with each line being a hex-color (AARRGGBB). Semicolons (;) are comments. Example:

Paint.NET调色板很简单。它是一个.txt,每行是一个十六进制颜色(AARRGGBB)。分号(;)是注释。例:

;comment
FF000000
FFFFFFFF
00000000

GIMP uses an ASCII plaintext format with extension .gpl. Take a peek with your favorite notepad program.

GIMP使用扩展名为.gpl的ASCII纯文本格式。看看你最喜欢的记事本程序。