Esempio n. 1
0
        public IImageSource CreateImageProxy(RasterColorScheme colorScheme)
        {
            var img = _grid.CreateImageProxy(colorScheme.GetInternal());

            if (img != null)
            {
                return(BitmapSource.Wrap(img));
            }
            return(null);
        }
Esempio n. 2
0
        public IImageSource OpenAsImage(RasterColorScheme scheme, GridProxyMode proxyMode = GridProxyMode.Auto)
        {
            var img = _grid.OpenAsImage(scheme.GetInternal(), (tkGridProxyMode)proxyMode);

            if (img != null)
            {
                return(BitmapSource.Wrap(img));
            }
            return(null);
        }