Ejemplo n.º 1
0
 public TextRepresentation(CgmFile container, int bundleIndex, int fontIndex, TextPrecisionType precision, double spacing, double expansion, CgmColor color)
     : this(container)
 {
     BundleIndex = bundleIndex;
     FontIndex   = fontIndex;
     Precision   = precision;
     Spacing     = spacing;
     Expansion   = expansion;
     Color       = color;
 }
Ejemplo n.º 2
0
        public override void ReadFromBinary(IBinaryReader reader)
        {
            var enumValue = reader.ReadEnum();

            switch (enumValue)
            {
            case 0:
                Value = TextPrecisionType.STRING;
                break;

            case 1:
                Value = TextPrecisionType.CHAR;
                break;

            case 2:
                Value = TextPrecisionType.STROKE;
                break;

            default:
                Value = TextPrecisionType.STRING;
                reader.Unsupported("unsupported text precision " + enumValue);
                break;
            }
        }
Ejemplo n.º 3
0
 public TextPrecision(TextPrecisionType precision)
     : base(5, 11)
 {
     Precision = precision;
 }
Ejemplo n.º 4
0
 public TextPrecision(CgmFile container, TextPrecisionType value)
     : this(container)
 {
     Value = value;
 }