Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
X PixMap
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Many-color encoding ==== One tool is known to use only '''a''' to '''p''' for 16 colors, switching to '''aa''' up to '''dp''' for 64 colors, but still reading single character encodings for 64 colors; compare [[Base64]]. With more colors the codes use more characters, e.g. '''aa''' up to '''pp''' for 16 Γ 16 = 256 colors. This is less useful for text editors, because a string '''ab''' could be actually the middle of two adjacent pixels '''dabc'''. Spaces are allowed as color code, but might be a bad idea depending on the used text editor. Without control codes, backslash, and quote (needed in XPM1 and XPM3) 128 β 33 β 2 = 93 [[ASCII]] characters are available for single character color codes. Simplified example: 90 US-ASCII characters could be arranged into nine non-overlapping sets of 10 characters. Thus unambiguous strings of nine characters could set the color of each pixel by its XPM palette index with up to 10<sup>9</sup> = {{val|1000000000}} colors (compare to [[GIF]], which supports only 256). For XPM2 it is clear how many lines belong to the image β two header lines, the second header line announcing the number of color codes (2 lines in the example above) and rows (height 4 in the example above), e.g. 2 + 2 + 4 = 8 lines.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)