Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!boulder!sunybcs!rutgers!umn-d-ub!umn-cs!ramarao From: ramarao@umn-cs.UUCP (Bindu Rama Rao) Newsgroups: comp.graphics Subject: CGM, GKS Message-ID: <2776@umn-cs.UUCP> Date: Wed, 11-Nov-87 15:47:20 EST Article-I.D.: umn-cs.2776 Posted: Wed Nov 11 15:47:20 1987 Date-Received: Sat, 14-Nov-87 04:29:53 EST References: <6694@ut-ngp.UUCP> <4022@gssc.UUCP> <1015@hp-sdd.HP.COM> Reply-To: ramarao@umn-cs.UUCP (Bindu Rama Rao) Organization: University of Minnesota Lines: 23 Bitstream data Hi, I am writing the code for generating a CGM (according to the Std.) and I am implemnting the Character Encoding standards. I have not been able to come up with an efficient algorithm to convert 1) Integer RGB colours (say as specified by Colour Value Extent) into the bitstream format (ie. rgbrgb rgbrgb rgbrgb ...) 2) Converting an array of integers into a single bitstream output (where the integers are all in a specified precision). I will be happy to receive any suggestions or examople code. I am writing the code in C. The metafile is character encoded. -thanx, bindu rama rao. ramarao@umn-cs.arpa bindu@simvax.bitnet