SwissAS / jcgm-core

An open source Java implementation to interpret and render Computer Graphics Metafile (CGM) graphics files.
Other
8 stars 6 forks source link

部分CGM文件无法解析 #2

Closed tp891217 closed 3 years ago

tp891217 commented 3 years ago

有部分的cgm文件,发现解析时Command好像是无法解析Unsupported 3,20 (arguments cleared),不明白是什么原因,有能协助解决的吗,谢谢?

BeginMetafile ICN-A320-A-47XX1040-A-FAPE3-01CS4-A-001-01
MetafileVersion 4
MetafileElementList VERSION 4 SET 
...
BeginPictureBody
ColourTable startIndex=0 
Unsupported 3,20 (arguments cleared)
BeginTileArray [position=Point2D.Double[0.0, 32602.0], cellPathDirection=0, lineProgressionDirection=1, nTilesInPathDirection=2, nTilesInLineDirection=3, nCellsPerTileInPathDirection=992, nCellsPerTileInLineDirection=779, cellSizeInPathDirection=0.0716705322265625, cellSizeInLineDirection=0.0716705322265625, imageOffsetInPathDirection=0, imageOffsetInLineDirection=0, nCellsInPathDirection=1984, nCellsInLineDirection=2337]
BitonalTile [compressionType=T6, rowPaddingIndicator=0, bufferedImage=null, backgroundColor=null, backgroundColorIndex=0, foregroundColor=null, foregroundColorIndex=1]
BitonalTile [compressionType=T6, rowPaddingIndicator=0, bufferedImage=null, backgroundColor=null, backgroundColorIndex=0, foregroundColor=null, foregroundColorIndex=1]
BitonalTile [compressionType=T6, rowPaddingIndicator=0, bufferedImage=null, backgroundColor=null, backgroundColorIndex=0, foregroundColor=null, foregroundColorIndex=1]
BitonalTile [compressionType=T6, rowPaddingIndicator=0, bufferedImage=null, backgroundColor=null, backgroundColorIndex=0, foregroundColor=null, foregroundColorIndex=1]
BitonalTile [compressionType=T6, rowPaddingIndicator=0, bufferedImage=null, backgroundColor=null, backgroundColorIndex=0, foregroundColor=null, foregroundColorIndex=1]
BitonalTile [compressionType=T6, rowPaddingIndicator=0, bufferedImage=null, backgroundColor=null, backgroundColorIndex=0, foregroundColor=null, foregroundColorIndex=1]
EndTileArray
Unsupported 3,20 (arguments cleared)
EndPicture
EndMetafile
philippecade commented 3 years ago

Class 3 element code 20 corresponds to the "transparent cell colour" element which is not implemented yet. This is why you are getting this message.

This is documented in the Wiki.

Feel free to open a pull request with an implementation for this.