Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  JBIU  >  RGBINDEX

RGBINDEX

RGBINDEX

Name


    RGBINDEX

Purpose


    Translates RGB triplets into colour indices for 24-bit decomposed mode.

Category


    Plot

Calling Sequence


    Result = RGBINDEX(R, G, B)

Inputs


    R: A byte or array of bytes of red values.
    G: A byte or array of bytes of green values.
    B: A byte or array of bytes of blue values.

Outputs


    Returns the colour index or indices for 24-bit decomposed mode
    (DEVICE, DECOMPOSED=1) corresponding to the R,G,B triplets.

Example


    r = [0,128,255]
    g = [128,128,128]
    b = [255,128,0]
    colourarray = RGBINDEX(r, g, b)

Modification History


    Written by: Jeremy Bailin
    12 June 2008 Public release in JBIU



© 2018 Harris Geospatial Solutions, Inc. |  Privacy Policy
My Account    |    Store    |    Contact Us