/// <summary> /// 移除完全透明的图片 /// </summary> private void RemoveIsTransparentImage() { for (int i = 0; i < LayerList.Count; i++) { if (ImageDraw.ImageIsTransparent.IsTransparent(LayerList[i].LayerImage)) { LayerList.RemoveAt(i); i--; } } }
/// <summary> /// Removes the layer at the specified index /// </summary> /// <param name="index"></param> public void RemoveLayerAt(int index) { LayerList.RemoveAt(index); }