示例#1
0
文件: Class472.cs 项目: 15831944/WW
        public Class472(
            string text,
            Interface14 font,
            Color color,
            short lineWeight,
            Interface35[] glyphs,
            Matrix2D basicTrafo,
            double charSpacingFactor)
        {
            this.string_0      = text;
            this.interface14_0 = font;
            this.color_0       = color;
            this.short_0       = lineWeight;
            this.interface35_0 = glyphs;
            this.double_0      = charSpacingFactor;
            this.matrix2D_0    = basicTrafo;
            foreach (ICanonicalGlyph glyph in glyphs)
            {
                this.vector2D_0 += glyph.Advance;
            }
            if (charSpacingFactor != 1.0)
            {
                this.vector2D_0.X *= charSpacingFactor;
            }
            this.generalShape2D_0 = new GeneralShape2D();
            Vector2D zero = Vector2D.Zero;

            foreach (Interface35 glyph in glyphs)
            {
                this.generalShape2D_0.Append(glyph.Path, false, Transformation3D.Translation(zero.X, zero.Y));
                zero += glyph.Advance * charSpacingFactor;
            }
        }
示例#2
0
        private static Type smethod_13(Type type_1)
        {
            Type attributeType = smethod_14();

            if (attributeType == null)
            {
                return(null);
            }
            object obj2 = type_1.GetCustomAttributes(attributeType, true).SingleOrDefault <object>();

            if (obj2 == null)
            {
                return(null);
            }
            Interface14 interface2 = Boolean_0 ? Class163.smethod_5 <Interface14>(obj2) : new Class141(obj2);

            return(interface2.Type_0);
        }
示例#3
0
文件: Class596.cs 项目: 15831944/WW
 internal Class596(Class596 from)
 {
     this.dxfModel_0    = from.dxfModel_0;
     this.color_0       = from.color_0;
     this.string_1      = from.string_1;
     this.string_2      = from.string_2;
     this.interface14_0 = from.Font;
     this.bool_0        = from.bool_0;
     this.bool_1        = from.bool_1;
     this.double_2      = from.double_2;
     this.double_3      = from.double_3;
     this.bool_2        = from.bool_2;
     this.bool_3        = from.bool_3;
     this.enum46_0      = from.enum46_0;
     this.double_4      = from.double_4;
     this.double_5      = from.double_5;
     this.bool_4        = from.bool_4;
     this.bool_5        = from.bool_5;
 }
示例#4
0
文件: Class865.cs 项目: 15831944/WW
 public Class865(
     string text,
     Interface14 font,
     Color color,
     short lineWeight,
     IShape2D path,
     Matrix2D charTransform,
     Matrix2D canonicalizeTransform,
     Vector2D advance)
 {
     this.string_0      = text;
     this.interface14_0 = font;
     this.color_0       = color;
     this.short_0       = lineWeight;
     this.ishape2D_0    = path;
     this.matrix2D_0    = charTransform;
     this.matrix2D_1    = canonicalizeTransform;
     this.vector2D_0    = advance;
     this.matrix2D_2    = charTransform * canonicalizeTransform;
 }