Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

remap(9) [plan9 man page]

REMAP(9.1)																REMAP(9.1)

NAME
cmap, remap - map colors SYNOPSIS
fb/cmap colormap [ input ] fb/remap colormap [ input ] DESCRIPTION
Cmap looks up the rgb channels of the input picture file (default standard input), in the colormap, writing the resulting rgb image to standard output. That is, cmap writes on its output the result of applying the colormap to the pixels of the input image. Remap is approximately the inverse of cmap. Pixel values in the input image are replaced by those that, when mapped through the input col- ormap, come closest to reproducing the input image. The output picture includes a copy of the colormap. SOURCE
/sys/src/fb/cmap.c /sys/src/fb/remap.c SEE ALSO
picfile(9.6) BUGS
Both commands work only if the input image contains rgb channels. REMAP(9.1)

Check Out this Related Man Page

PCP(9.1)																  PCP(9.1)

NAME
pcp - copy pictures SYNOPSIS
fb/pcp [ -wx0 y0 x1 y1 ] [ -ox y ] [ -ttype ] [ -cchannels ] [ -Cchannels ] [ -mcolormap ] [ -M ] [ input [ output ] ] DESCRIPTION
Pcp copies the input picture (default standard input) to the output file (default standard output). Options control the attributes and content of the output picture. -w x0 y0 x1 y1 causes only the given window of the input picture to be copied. By default the whole picture is copied. -o x y causes the output picture's WINDOW= attribute to be translated by adding (x,y) to the input window coordinates. -t type sets the TYPE= attribute of the output file. The default is to use the input file's type. -c channels causes only the given channels of the input picture to be copied. The default is to copy all channels. If channels not present in the input picture are specified, they are computed in the ``most plausible'' way. For example, a missing alpha channel is set to 255, and an m channel will be synthesized from rgb channels by computing NTSC luminance. A 0 in channels causes a zero channel to be written. -C channels sets the output CHAN= attribute. Channels must be the same length as the selected channels of the input picture. -m colormap attaches the given color map to the output. -M elides the color map from the output. SOURCE
/sys/src/fb/pcp.c SEE ALSO
picfile(9.6), cmap(9.6) PCP(9.1)
Man Page

5 More Discussions You Might Find Interesting

1. Linux

Remap Mouse Buttons with Xmodmap

Hi Guys I am having an issue with remapping a mouse i have a thumb button that i want to remap to be middle click i used xev to find out that it is button 10 and and that middle click is button 6 and so i tired this but it did not work xmodmap -e "pointer = 1 2 3 4 5 6 10 7 8 9 6 " ... (2 Replies)
Discussion started by: ab52
2 Replies

2. UNIX for Advanced & Expert Users

run command while remapping file names

Is there a way to run an arbitrary command under a specified remapping of path names, i.e. so that when the command opens file named A it would instead open file named B? Essentially, I'd like to intercept the open() system call and modify its argument. I've seen references on the web for... (3 Replies)
Discussion started by: notestaff
3 Replies

3. UNIX for Advanced & Expert Users

keyboard remapped drastically by X

I have Fedora 16 + LXDE + old NVIDIA Quadro FX 570. I updated a bunch of packages last night (see list at the bottom), installed new kernel also (3.4.4), then updated the proprietary NVIDIA driver, and after booting back into X, the keyboard is remapped wildly. Pretty much all the keys are... (1 Reply)
Discussion started by: mirni
1 Replies

4. Shell Programming and Scripting

Tar extract: remap uid gid ?

OK, so simple question here: Is there anyway to REMAP, while extracting with tar, specific uid's and gid's on extracted files ? Background: The usual transfer between two servers with same literals username's names, but with different gid and uid. I would like, for example, files owned by... (6 Replies)
Discussion started by: fidodido
6 Replies

5. Shell Programming and Scripting

Bash arrays: rebin/interpolate smaller array to large array

hello, i need a bit of help on how to do this effectively in bash without a lot of extra looping or massive switch/case i have a long array of M elements and a short array of N elements, so M > N always. M is not a multiple of N. for case 1, I want to stretch N to fit M arrayHuge H = (... (2 Replies)
Discussion started by: f77hack
2 Replies