Alexandria.Engines.Sciagi.Resources.PictureCanvas.GetRaster C# (CSharp) Method

GetRaster() public method

Get a raster layer.
public GetRaster ( PictureLayer layer ) : Raster
layer PictureLayer
return Raster
        public Raster GetRaster(PictureLayer layer)
        {
            switch (layer) {
                case PictureLayer.Visual: return Visual;
                case PictureLayer.Priority: return Priority;
                case PictureLayer.Control: return Control;
                case PictureLayer.Auxiliary: return Auxiliary;
                default: throw new ArgumentException(typeof(PictureLayer).Name + " value " + layer + " is not valid.", "layer");
            }
        }