private static Image GetBaseImageTotem(int species, int form, int gender, bool shiny, int generation) { var baseform = FormConverter.GetTotemBaseForm(species, form); var file = GetResourceStringSprite(species, baseform, gender, generation, shiny); var baseImage = (Image)Resources.ResourceManager.GetObject(file); return(ImageUtil.ToGrayscale(baseImage)); }
private Image?GetBaseImageTotem(int species, int form, int gender, bool shiny, bool gmax, int generation) { var baseform = FormConverter.GetTotemBaseForm(species, form); var baseImage = GetBaseImageDefault(species, baseform, gender, shiny, gmax, generation); if (baseImage == null) { return(null); } return(ImageUtil.ToGrayscale(baseImage)); }