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)); }
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); }