Libraries
Pixel Source Code
 previous   up   next 

Types
pixel
Describes the color of a pixel.
colorLookupTable
Type describing a color lookup table, which maps integers to pixels.

pixel

const type: pixel

Describes the color of a pixel. A pixel value uses the same color encoding as the graphics library of the operating system. The function rgbPixel(red, green, blue) creates a pixel from red, green and blue values in the range 0 to 65535. A pixel can be converted back to red, green and blue values with the function pixelToRgb(pix).


colorLookupTable

const type: colorLookupTable

Type describing a color lookup table, which maps integers to pixels. Several image formats use color lookup tables.


Operator Summary
boolean
(in pixel: pix1) = (in pixel: pix2)
Checks if two pixel values are equal.
boolean
(in pixel: pix1) <> (in pixel: pix2)
Checks if two pixel values are not equal.

Function Summary
integer
compare (in pixel: pixel1, in pixel: pixel2)
Compares two pixels.
integer
hashCode (in pixel: aPixel)
Computes the hash value of a pixel.
pixel
rgbPixel (in integer: red, in integer: green, in integer: blue)
Creates a pixel from the red, green and blue colors of light.
void
pixelToRgb ( in pixel: col, inout integer: red, inout integer: green, inout integer: blue)
Converts a pixel to red, green and blue values.

Operator Detail

=

const func boolean: (in pixel: pix1) = (in pixel: pix2)

Checks if two pixel values are equal.

Returns:
TRUE if both values are equal, FALSE otherwise.

<>

const func boolean: (in pixel: pix1) <> (in pixel: pix2)

Checks if two pixel values are not equal.

Returns:
FALSE if both values are equal, TRUE otherwise.

Function Detail

compare

const func integer: compare (in pixel: pixel1, in pixel: pixel2)

Compares two pixels.

Returns:
-1, 0 or 1 if the first argument is considered to be respectively less than, equal to, or greater than the second.

hashCode

const func integer: hashCode (in pixel: aPixel)

Computes the hash value of a pixel.

Returns:
The hash value.

rgbPixel

const func pixel: rgbPixel (in integer: red, in integer: green, in integer: blue)

Creates a pixel from the red, green and blue colors of light. The range for the red, green and blue values is from 0 to 65535.


pixelToRgb

const proc: pixelToRgb ( in pixel: col, inout integer: red, inout integer: green, inout integer: blue)

Converts a pixel to red, green and blue values. The red, green and blue values are in the range from 0 to 65535.



 previous   up   next