예제 #1
0
        public unsafe ImageStyle Clone()
        {
            var i = new ImageStyle();

            i.Alignment = Alignment;
            i.Draw      = Draw;
            i.Image     = Implementation.Factory.newBuffer((int *)Image.Pixels, Image.Width, Image.Height);
            return(i);
        }
예제 #2
0
        public DrawStyle Clone()
        {
            var d = new DrawStyle();

            d.Angle                 = new Angle(Angle);
            d.PreferredSize         = new Size(PreferredSize.Width, PreferredSize.Height);
            d.CaseConversion        = CaseConversion;
            d.Position              = Position;
            d.Breaker               = Breaker;
            d.Delimiter             = Delimiter;
            d.TextStyle             = TextStyle;
            d.LineHeight            = LineHeight;
            d.ImageStyle            = ImageStyle?.Clone() as IImageStyle;
            d.DrawGlyphIndividually = DrawGlyphIndividually;
            return(d);
        }