gcpMapHSVColor(3)

gcpMapHSVColor3

Convert from gcp_*color(s) to gcp_pixel(s)

Part of gcpMapRGBAColor(3).

Usage

#include <ggi/gcp.h>
gcp_pixel gcpMapRGBAColor(ggi_visual_t vis,
              gcp_RGBAcolor *col);
int gcpPackRGBAColors(ggi_visual_t vis,
              void *buf,gcp_RGBAcolor *cols,int len);
gcp_pixel gcpMapYUVColor(ggi_visual_t vis,
              gcp_YUVcolor *col);
int gcpPackYUVColors(ggi_visual_t vis,
              void *buf,gcp_YUVcolor *cols,int len);
gcp_pixel gcpMapCMYKColor(ggi_visual_t vis,
              gcp_CMYKcolor *col);
int gcpPackCMYKColors(ggi_visual_t vis,
              void *buf,gcp_CMYKcolor *cols,int len);
gcp_pixel gcpMapHSVColor(ggi_visual_t vis,
              gcp_HSVcolor *col);
int gcpPackHSVColors(ggi_visual_t vis,
              void *buf,gcp_HSVcolor *cols,int len);
gcp_pixel gcpMapYCCColor(ggi_visual_t vis,
              gcp_YCCcolor *col);
int gcpPackYCCColors(ggi_visual_t vis,
              void *buf,gcp_YCCcolor *cols,int len);

Overview

gcpMap*Color gets the pixelvalue for the given color.

gcpPack*Colors converts the colors in cols to pixelvalues in buf. The output from this function is suitable for input to the ggiPut{HLine,VLine,Box} functions.

Try to cache the results of color lookups in your application for efficiency purposes.

Return value

gcpMap*Color returns a gcp_pixel(3).

gcp*PackColors returns 0 for OK, otherwise an ggi-error(3) code.

Releases

3 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0–6.0

From libggigcp1-dev 1.0.2+dfsg1-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.