Skip to content

ReadEnColor creates bad Color #197

@mme1950

Description

@mme1950

We read a complex DWG with several colors.
It worked "quite well" before. But now it seems all colors are ByBlock.

ReadEnColol has been changed recently:

old: color = new Color((short)(size & 0b111111111111));
new: color = new Color((byte)(size & 0b111111111111));

Rolling back to the old code seems to fix the problem.

BTW: These lines cannot be correct: A true color using the RGB value cannot be created this way:

//Next value is a BS containing the RGB value(last 24 bits).
color = new Color((byte)this.ReadBitLong());

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions