Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ BlackPixel(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XBlackPixel, XBlackPixelOfScreen, BlackPixel, BlackPixelOfScreen — get the black pixel value. 

SYNOPSIS

unsigned long XBlackPixelOfScreen(screen)
      Screen ∗screen; unsigned long XBlackPixel(display, screen_number)
      Display ∗display;
      int screen_number;

ARGUMENTS

screenSpecifies the appropriate Screen structure. 

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

screen_number
Specifies the appropriate screen number.

RETURNS

A pixel value. 

DESCRIPTION

Each screen has a default colormap which has pixel values for black and white already allocated.  These functions return the black pixel value.  Note that this pixel value only represents black in a screen’s default colormap. 

XBlackPixel() and XBlackPixelOfScreen() are equivalent except that they require different arguments.  One requires a pointer to a Screen structure, while the other requires a screen number.  Unless you already have the pointer to a Screen structure in a variable, XBlackPixel∗() is more convenient. 

The C language macros BlackPixel() and BlackPixelOfScreen() are equivalent and slightly more efficient. 

SEE ALSO

XWhitePixel∗(), XWhitePixelOfScreen(), XDefaultColormap∗(). 

Xlib Reference Manual

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