home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.postscript
- Path: sparky!uunet!infonode!dave@maven.b29.ingr.com
- From: dave@maven.b29.ingr.com (Dave Bradford)
- Subject: Lev 2 Image Dictionary Question
- Message-ID: <1992Nov16.231218.16989@infonode.ingr.com>
- Sender: usenet@infonode.ingr.com (Usenet Administrator)
- Reply-To: dave@maven.b29.ingr.com (Dave Bradford)
- Organization: Intergraph Corporation, Huntsville, AL.
- Date: Mon, 16 Nov 1992 23:12:18 GMT
- Lines: 47
-
- I am trying to write a color raster level 2 PostScript driver
- using run length encoding. My problem is that my data seems
- to be interpreted as RGB, RGB, ... instead of:
-
- RRRRRRRRRR
- GGGGGGGGGG
- BBBBBBBBBB
-
- I figure that by separating the color components by scanline I
- can get the most out of RLE encoding. I have been succesful
- using the level 1 colorimage operator with true 3 (multiple
- data source, 3 colors) but in the process of switching to
- level 2 and using the image dictionary and image filters I
- have not had any luck.
-
- Here is a sample of what I have tried (without compression):
-
- initgraphics
- /inch {72 mul} def
- /width 300 def
- /height 300 def
- /finalwidth 1.00 inch def
-
- /DeviceRGB setcolorspace
- 18 18 translate
- finalwidth finalwidth width div height mul scale
- /rline currentfile /ASCIIHexDecode filter def
- /gline currentfile /ASCIIHexDecode filter def
- /bline currentfile /ASCIIHexDecode filter def
-
- gsave
- <<
- /ImageType 1
- /Width width /Height height
- /MultipleDataSources true
- /BitsPerComponent 8
- /Decode [0 1 0 1 0 1]
- /ImageMatrix [width 0 0 height neg 0 height]
- /DataSource [rline gline bline]
- >>
- image
- ....... data not included ......
-
- Any help is very much appreciated.
- --
- Dave Bradford dave@maven.b29.ingr.com (Internet)
-
-