/// <summary> /// Adds an existing layer (must be the same width/height) to the image and inserts it at the specified position (0-based). /// </summary> /// <param name="layer">The layer to add.</param> /// <param name="index">The position to add the layer.</param> public void Add(Layer layer, int index) { layers.Insert(index, layer); }
/// <summary> /// Removes the specified layer. /// </summary> /// <param name="layer">The layer.</param> public void Remove(Layer layer) { layers.Remove(layer); }
/// <summary> /// Adds an existing layer (must be the same width/height) to the image. /// </summary> /// <param name="layer">The layer to add.</param> public void Add(Layer layer) { layers.Add(layer); }