public RasterColorScheme RetrieveColorScheme(GridSchemeRetrieval method) { var scheme = _grid.RetrieveColorScheme((tkGridSchemeRetrieval)method); if (scheme != null) { return(new RasterColorScheme(scheme)); } return(null); }
public RasterColorScheme RetrieveOrGenerateColorScheme(GridSchemeRetrieval retrievalMethod = GridSchemeRetrieval.Auto, GridSchemeGeneration generateMethod = GridSchemeGeneration.Gradient, PredefinedColors colors = PredefinedColors.FallLeaves) { var scheme = _grid.RetrieveOrGenerateColorScheme((tkGridSchemeRetrieval)retrievalMethod, (tkGridSchemeGeneration)generateMethod, (PredefinedColorScheme)colors); if (scheme != null) { return(new RasterColorScheme(scheme)); } return(null); }