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");
}
}