public AudiosurfSkin() { SkySpheres = new ImageGroup(); Cliffs = new ImageGroup(); Hits = new ImageGroup(); Particles = new ImageGroup(); Rings = new ImageGroup(); Tiles = new NamedBitmap(); TilesFlyup = new NamedBitmap(); }
private ImageGroup GetAllImagesByNameMask(string groupName, string nameMask, string path) { var group = new ImageGroup(groupName); string[] AllFiles = Directory.GetFiles(path); foreach (var file in AllFiles) { var origName = Path.GetFileName(file); var fname = origName.ToLower(); var fileExt = Path.GetExtension(fname); if (fname.Contains(nameMask) && new[] { ".png", ".jpg" }.Any(x => x == fileExt)) { var image = new NamedBitmap(origName, Image.FromFile(file)); group.AddImage(image); } } return(group); }
public void SetImage(NamedBitmap other) { this.source = other.source; this.Name = other.Name; this.format = other.format; }