doug@genmri.UUCP (Doug Becker) (01/31/91)
Is a dynamic XView CMS guaranteed to contain contiguous *real* indices into the colormap? That is, given the following code fragment: cms = (Cms) xv_create (NULL, CMS, CMS_TYPE, XV_DYNAMIC_CMS, CMS_SIZE, size, NULL); pixels = (unsigned long *) xv_get (cms, CMS_INDEX_TABLE); Will it hold that for size > 1, and for all read/write displays of appropriate depth (esp. 8-bit PseudoColor), pixels[0] = i, pixels[1] = i + 1, ... , pixels[size - 1] = i + size - 1 ? This is the behavior I've noted thus far (in my limited environment), but I was unable to find any definitive statement about this in the XView documentation (O'Reilly Volume 7). I'm using XView 2.0 on a SPARCstation 1. -- Doug Becker doug@nmri.ge.com crdgw1.ge.com!sane!doug