Exemple #1
0
        public static FurniRectangle GetFurniRectangle(List <FurniImageAsset> fiaList)
        {
            FurniRectangle rect = new FurniRectangle();
            Point          p;
            bool           setted = false;

            foreach (FurniImageAsset fia2 in fiaList.OrderByDescending(o => o.Height))
            {
                if (fia2.X == 30 && fia2.Y == 80 && rect.Height <= fia2.Height && rect.Width <= fia2.Width)
                {
                    rect.Height = fia2.Height;
                    rect.Width  = fia2.Width;
                }
            }
            return(rect);
        }
Exemple #2
0
 public static FurniRectangle GetFurniRectangle(List<FurniImageAsset> fiaList)
 {
     FurniRectangle rect = new FurniRectangle();
     Point p;
     bool setted = false;
     foreach (FurniImageAsset fia2 in fiaList.OrderByDescending(o=>o.Height))
     {
         if(fia2.X == 30 && fia2.Y == 80 && rect.Height <= fia2.Height && rect.Width <= fia2.Width)
         {
             rect.Height = fia2.Height;
             rect.Width = fia2.Width;
         }
     }
     return rect;
 }