[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3379.0. "allocate colors in VS3520 with 24 planes" by TPOVC::JOHNNYHO () Mon Sep 24 1990 08:24

    The customer is using 24 planes true color VS3520 to develope
    application. Because 14 color planes is enough for them, is it possible
    for them to allocate only 14 planes for them to use? What they want is
    to be able to allocate the colors they need in color map.
    
    Are they able to do it?
    
T.RTitleUserPersonal
Name
DateLines
3379.1PSW::WINALSKICareful with that VAX, EugeneMon Sep 24 1990 15:035
For a TrueColor visual, I don't think you have to allocate color planes.
However, if you do have to allocate them, you can use XAllocColorPlanes() to
do so.

--PSW
3379.2DECWIN::FISHERLocutus: Fact or Fraud?Fri Sep 28 1990 14:4918
You can neither do AllocColorCells or AllocColorPlanes in TrueColor, since
TrueColor is readonly, and both of these imply that the colormap must be
writable.

You can, but need not do AllocColor.

What do they want to do with the "extra" 10 planes that they "don't need"?  Are
you saying that they would really like to have a 14-plane TrueColor system plus
a 10-plane PseudoColor system?  Have we almost got a deal for you...if they
create additional windows and colormaps and specify PseudoColor as the visual
type, they will be able to have 8-Plane PseudoColor windows as well as 24-plane
TC windows.

You have to be real careful when you use a non-default visual.  Things like
the border color and stuff are touchy.  Look at CMAP.C from the DW_EXAMPLES
conference for one example that can do the right thing.

Burns