Exemplo n.º 1
0
        public Image GetImage(int[] size, Image img)
        {
            int width  = size[0];
            int height = size[1];

            if (size[0] < img.Width)
            {
                width = img.Width;
            }
            if (size[1] < height)
            {
                height = img.Height;
            }
            NinePatch image = new NinePatch(img);

            return(image.ImageSizeOf(width, height));
        }
Exemplo n.º 2
0
 public Image GetImage(int[] size, Image img)
 {
     int width = size[0];
     int height = size[1];
     if (size[0] < img.Width)
         width = img.Width;
     if (size[1] < height)
         height = img.Height;
     NinePatch image = new NinePatch(img);
     return image.ImageSizeOf(width, height);
 }