You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.MD
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,19 +88,46 @@ Mirroring:
88
88
Error control:
89
89
90
90
*`-il` ignore line on color collision
91
+
91
92
Continue processing the file even if collisions are found. Offending lines will be have 0x00 both as pattern and color.
93
+
92
94
Can be useful in combination with `-d` to check all the collisions at once.
93
95
96
+
PNG2MSX has to choose, for each line, which color is foreground and which one is background. By default, it makes a best effort to get the most natural pattern (i.e.: the one that most likely an human will choose) and the combination of patterns/colors that will get the best compression ratio.
97
+
98
+
Pattern generation algorithm:
99
+
100
+
*`-sa` auto-detect stripped images (default)
101
+
102
+
*`-sy` force image to be detected as stripped
103
+
104
+
*`-sn` force image to be detected as non-stripped
105
+
106
+
Some particular images (e.g.: images with stripped background) get a better compression ratio using a simpler algorithm. These three options control which algorithm will be used.
107
+
94
108
Pattern generation:
95
109
96
110
*`-hl` force higher color to be foreground
111
+
97
112
*`-lh` force lower color to be foreground
113
+
98
114
*`-ld` force lighter foreground, darker background
115
+
99
116
*`-dl` force darker foreground, lighter background
117
+
100
118
*`-f<0..7>` force bit <n> to be foreground (set) on patterns
119
+
101
120
*`-b<0..7>` force bit <n> to be background (reset) on patterns
102
-
These four options allow some control on how patterns are created, and which color is foreground and which one is background.
103
-
Can be useful if colors are going to be set programatically (e.g.: fonts colored with FILVRM) or to improve compression results.
121
+
122
+
These six options allow some control on how patterns are created, and which color is foreground and which one is background.
123
+
124
+
Can be useful if colors are going to be set programatically (e.g.: fonts colored with FILVRM).
125
+
126
+
*`-pf<0000>` post-process only the specified address range (from, hexadecimal)
127
+
128
+
*`-pt<ffff>` post-process only the specified address range (to, hexadecimal)
129
+
130
+
Allows the specified post-processing pattern generator to be applied only to an specific address range (for example, the font part of a charset) without alterations of the rest of the image.
0 commit comments