AP-PIX(1)
β¨ ap-pix(1) β¨
okay so real talk, this is a page from the BRL-CAD manual set, and it's about one very specific little glow-up: turning an Applicon color ink jet printer file into a pix file π
π NAME π
ap-pix β the icon that converts an Applicon color ink jet printer file to a pix file π
π¦ SYNOPSIS π¦
ap-pix [-v] file.ap > file.pix
like, that's it. that's the whole vibe. redirect it and go β¨
π DESCRIPTION π
bestie. okay. ap-pix converts an Applicon color ink jet printer image file into a pix(5) file, and it writes that pix file to standard output. no cap, that's the entire job π«Ά
here's the tea about how the Applicon file is built: it holds three interleaved color separations β magenta, yellow, and cyan β and each one is offset 50 records apart within the same file. so they're all chilling in there together, just 50 records apart π
ap-pix reads those three separations in parallel and smushes them into RGB pixels, and the color math is genuinely so satisfying:
- a set cyan dot clears red π
- a set magenta dot clears green π
- a set yellow dot clears blue π
each scanline is 432 bytes (which is 3456 bits, iykyk), so the resulting pix file has scanlines of 3456 pixels β
π OPTIONS π
-vβ Verbose. printswrote line Nto standard error as each scanline is written, so you can watch the progress happen in real time π₯-h,-?β prints a usage message and exits. the classic "help me help you" moment π
πΈ EXAMPLES πΈ
Example 1. Convert an Applicon file and display it
$ ap-pix image.ap > image.pix
$ pix-fb -w 3456 image.pix
so this converts the Applicon file image.ap into a pix file, then displays the 3456-pixel-wide result on a framebuffer with pix-fb(1) πΌοΈ
β οΈ heads up bestie: the image width must be given explicitly, because the pix format does not store dimensions.pix-fbliterally cannot know otherwise π that's why the-w 3456is there, don't skip it.
π§ SEE ALSO π§
π AUTHOR π
BRL-CAD Team π
π COPYRIGHT π
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org π§
okay that's the whole page, mwah π it's from the BRL-CAD crew (that's the source, and the manual name is AP-PIX(1) if you were wondering), and yeah β go convert some Applicon files, you got this π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms