Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RGB_TO_BW(3)		   Library Functions Manual		  RGB_TO_BW(3)

NAME
       rgb_to_bw - convert a color scanline to black and white.

SYNOPSIS
       #include	<rle.h>

       void rgb_to_bw( red, green, blue, bw, length );
       rle_pixel * red,	* green, * blue, *bw;
       int length;

DESCRIPTION
       rgb_to_bw  converts red/green/blue color	information to black and white
       using the NTSC Y	transform:
     Y = 0.30 *	R + 0.59 * G + 0.11 * B	 .  The	arguments point	 to  scanlines
     with  length bytes	in each.  bw may be identical to one of	red, green, or
     blue.

SEE ALSO
       tobw(1),	librle(3), RLE(5).

AUTHOR
       Spencer W. Thomas
       University of Utah

4th Berkeley Distribution	    2/2/87			  RGB_TO_BW(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=rgb_to_bw&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help