Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xil_colorspace_set_name(3) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xil_set_colorspace(3)

xil_color_convert(3)

xil_color_correct(3)

xil_colorspace_create(3)

NAME

xil_colorspace_create, xil_colorspace_destroy, xil_colorspace_get_type, xil_colorspace_get_name, xil_colorspace_set_name − create, destroy, get the type, get or set the name of an XilColorspace object

SYNOPSIS

#include <xil/xil.h>

XilColorspace∗ xil_colorspace_create(XilSystemState∗ system_state,

XilColorspaceType type,
void∗ data);

void xil_colorspace_destroy(XilColorspace∗ colorspace);

void xil_colorspace_get_type(XilColorspace∗ colorspace);

char∗ xil_colorspace_get_name(XilColorspace∗ colorspace);

void xil_colorspace_set_name(XilColorspace∗ colorspace,

char∗ name);

DESCRIPTION

These functions create, destroy, get the type, and set and get a name for an
XilColorspace object.

xil_colorspace_create() creates an XilColorspace object of the type specified by
XilColorspaceType and stores the data specified by data. XilColorspaceType can be any of 3 types: XIL_COLORSPACE_NAME, XIL_COLORSPACE_FILENAME, or XIL_COLORSPACE_KCS_ID.  XIL_COLORSPACE_KCS_ID corresponds to a name (default color spaces created by XIL), filename, or a KCMS id. 

xil_colorspace_destroy() destroys the specified colorspace. 

xil_colorspace_get_type() gets the type of colorspace and associated data. 

xil_colorspace_set_name() sets the name on colorspace with name. 

xil_colorspace_get_name() gets any associated name of colorspace. If no name is set on colorspace, it returns NULL. 

ERRORS

For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide. 

EXAMPLES

This example sets a name on an existing color space. 

    /∗
    ∗ Set a name on a color space
    ∗/
    xil_colorspace_set_name(colorspace, "myname");

SEE ALSO

xil_set_colorspace(3), xil_color_convert(3), xil_color_correct(3). 

SunOS 5.6  —  Last change: 6 May 1997

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026