예제 #1
0
    public IGraphicsFormat Clone()
    {
        var format = new PatternGraphicsFormat(Name, ColorType, ColorDepth, Layout, Packing, DefaultWidth, DefaultHeight);

        format.SetPattern(Pattern);
        format.MergePlanePriority = MergePlanePriority.ToArray();
        format.RowPixelPattern    = new RepeatList(RowPixelPattern);

        return(format);
    }
예제 #2
0
    public IGraphicsFormat Clone()
    {
        var clone = new FlowGraphicsFormat(Name, ColorType, ColorDepth, Layout, DefaultWidth, DefaultHeight)
        {
            FixedSize          = FixedSize,
            MergePlanePriority = MergePlanePriority.ToArray(),
            ImageProperties    = new List <ImageProperty>()
        };

        foreach (var prop in ImageProperties)
        {
            var propclone = new ImageProperty(prop.ColorDepth, prop.RowInterlace, prop.RowPixelPattern);
            clone.ImageProperties.Add(propclone);
        }

        return(clone);
    }