Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!europa.chnt.gtegsc.com!howland.reston.ans.net!news.sprintlink.net!in1.uu.net!utcsri!newsflash.concordia.ca!CC.UMontreal.CA!news.uqam.ca!news
From: bourdon bertrand <bourdon@larc.info.uqam.ca>
Subject: How to get a FixedPalette from an X color display?
Content-Type: text/plain; charset=us-ascii
Message-ID: <HYV3B99Q@news.uqam.ca>
Sender: news@news.uqam.ca
Nntp-Posting-Host: do.info.uqam.ca
Content-Transfer-Encoding: 7bit
Organization: Universite du Quebec a Montreal
Mime-Version: 1.0
Date: Tue, 15 Aug 1995 20:04:32 GMT
X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3C sun4m)
X-Url: news:comp.lang.smalltalk
Lines: 18

Hope it's the right newsgroup for such a question.
I'm new at Smalltalk and having the following problem:
I'd like to grab picture via 'Image fromUser' and store them in an OODBMS.
The trouble is that I can't keep the right palette as it's a MappedPalette
wich is associated with such an Image.
I'd like to know if there is a way to translate a MappedPalette in a
FixedPalette? Or, as I'm using X and a color display, how to catch the
screen palette as a fixed one. It should be possible, at least it's what
is writen in 'Objectworks\Smalltalk release 4.1 User's Guide' (pp 302)
but I couldn't find any explanation of how doing it, and the message use
primitive so I don't see how to ack it.
If sombody could give me a hint, it'll be greatly appreciated.
 
        Bertrand bourdon
 
bourdon@larc.info.uqam.ca
bourdon@etud.dauphine.fr

