Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
rawtoppm(1)
Edit
PageHistory
Diff
Info
LikePages
rawtoppm !!!rawtoppm NAME SYNOPSIS DESCRIPTION OPTIONS SEE ALSO AUTHOR ---- !!NAME rawtoppm - convert raw RGB bytes into a portable pixmap !!SYNOPSIS __rawtoppm__ [[__-headerskip__ ''N''] [[__-rowskip__ ''N''] [[__-rgb__|__-rbg__|__-grb__ |__-gbr__|__-brg__|__-bgr__ ] [[__-interpixel__|__-interrow__] ''width height'' [[''imagedata''] !!DESCRIPTION Reads raw RGB bytes as input. Produces a portable pixmap as output. The input file is just RGB bytes. You have to specify the width and height on the command line, since the program obviously can't get them from the file. The maxval is assumed to be 255. If the resulting image is upside down, run it through __pnmflip -tb .__ !!OPTIONS __-headerskip__ If the file has a header, you can use this flag to skip over it. __-rowskip__ If there is padding at the ends of the rows, you can skip it with this flag. __-rgb -rbg -grb -gbr -brg -bgr__ These flags let you specify alternate color orders. The default is __-rgb__. __-interpixel -interrow__ These flags let you specify how the colors are interleaved. The default is __-interpixel__, meaning interleaved by pixel. A byte of red, a byte of green, and a byte of blue, or whatever color order you specified. __-interrow__ means interleaved by row - a row of red, a row of green, a row of blue, assuming standard rgb color order. An __-interplane__ flag - all the red pixels, then all the green, then all the blue - would be an obvious extension, but is not implemented. You could get the same effect by splitting the file into three parts (perhaps using ''dd''), turning each part into a PGM file with rawtopgm, and then combining them with rgb3toppm. !!SEE ALSO ppm(5), rawtopgm(1), rgb3toppm(1), pnmflip(1) !!AUTHOR Copyright (C) 1991 by Jef Poskanzer. ----
4 pages link to
rawtoppm(1)
:
pbmfilters(1)
Man1r
rawtopgm(1)
ppm(5)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.