Exemplo n.º 1
0
        public static GeometricPatternDefinition GeometricPatternDefinition(MetafileReader reader)
        {
            int patternIndex      = reader.ReadIndex();
            int segmentIdentifier = reader.ReadName();
            var firstCornerPoint  = reader.ReadPoint();
            var secondCornerPoint = reader.ReadPoint();

            return(new GeometricPatternDefinition(patternIndex, segmentIdentifier, firstCornerPoint, secondCornerPoint));
        }
Exemplo n.º 2
0
 public static CopySegment CopySegment(MetafileReader reader)
 {
     return(new CopySegment(reader.ReadName(), reader.ReadMatrix(), ParseTransformationApplication(reader.ReadEnum())));
 }
Exemplo n.º 3
0
 public static SegmentPickPriority SegmentPickPriority(MetafileReader reader)
 {
     return(new SegmentPickPriority(reader.ReadName(), reader.ReadInteger()));
 }
Exemplo n.º 4
0
 public static SegmentHighlighting SegmentHighlighting(MetafileReader reader)
 {
     return(new SegmentHighlighting(reader.ReadName(), ParseHighlighting(reader.ReadEnum())));
 }
Exemplo n.º 5
0
 public static SegmentTransformation SegmentTransformation(MetafileReader reader)
 {
     return(new SegmentTransformation(reader.ReadName(), reader.ReadMatrix()));
 }
Exemplo n.º 6
0
 public static RestorePrimitiveContext RestorePrimitiveContext(MetafileReader reader)
 {
     // TODO: spec says type "I", which is integer; even though there is a type for "N" (name)
     //       needs to be verified, I couldn't find any file that uses this yet.
     return(new RestorePrimitiveContext(reader.ReadName()));
 }
Exemplo n.º 7
0
 public static PickIdentifier PickIdentifier(MetafileReader reader)
 {
     return(new PickIdentifier(reader.ReadName()));
 }
 public static BeginSegment BeginSegment(MetafileReader reader)
 {
     return(new BeginSegment(reader.ReadName()));
 }