public static List <Rect> CreateLayout(Size parentRect, List <Size> childrenRects, double marginBetween)
        {
            List <ThumbAttachment> thumbAttachments = RectangleLayoutHelper.ConvertSizesToThumbAttachments(childrenRects);

            ThumbnailLayoutManager.ProcessThumbnails(parentRect.Width, parentRect.Height, thumbAttachments, marginBetween);
            return(RectangleLayoutHelper.ConvertProcessedThumbsToRects(thumbAttachments, marginBetween, parentRect.Width));
        }
Example #2
0
        public static List <Rect> CreateLayout(Size parentRect, List <Size> childrenRects, double marginBetween)
        {
            List <ThumbAttachment> thumbAttachments = RectangleLayoutHelper.ConvertSizesToThumbAttachments(childrenRects);

            // ISSUE: explicit reference operation
            // ISSUE: explicit reference operation
            ThumbnailLayoutManager.ProcessThumbnails(((Size)@parentRect).Width, ((Size)@parentRect).Height, thumbAttachments, marginBetween);
            // ISSUE: explicit reference operation
            return(RectangleLayoutHelper.ConvertProcessedThumbsToRects(thumbAttachments, marginBetween, ((Size)@parentRect).Width));
        }