public PixelationHDMA() { Values = new List <PixelScanline>(); Table = new HDMATable(".PixelTable"); ColorMath = new ColorMath(); OriginalImages = new BitmapCollection(); }
public ColorMath(BitmapCollection Collection) : this() { BG1 = Collection.BG1; BG2 = Collection.BG2; BG3 = Collection.BG3; BG4 = Collection.BG4; OBJ = Collection.OBJ; FixedColor = BitmapEffects.FromColor(Collection.FixedColor, LayerSizes); }
public object Clone() { BitmapCollection col = new BitmapCollection(); col.BG1 = new Bitmap(this.BG1); col.BG2 = new Bitmap(this.BG2); col.BG3 = new Bitmap(this.BG3); col.BG4 = new Bitmap(this.BG4); col.OBJ = new Bitmap(this.OBJ); col.Name = this.Name; col.FixedColor = this.FixedColor; return(col); }
/// <summary> /// Saves a BitmapCollection to file. /// </summary> /// <param name="Collection">The collection to save</param> /// <param name="FilePath">The path to save to</param> public static void Save(BitmapCollection Collection, string FilePath) { using (FileStream stream = new FileStream(FilePath, FileMode.Create, FileAccess.Write, FileShare.None)) formatter.Serialize(stream, Collection); }