Exemplo n.º 1
0
        private Image PerformResize(Filter resizeFilter, int width, int height)
        {
            var result = new Image(_input.ColorModel, resizeFilter.Apply(_input.Raster, width, height));

            // We need to copy the PPI values to the result Image (otherwise will always be zero)
            result.DensityX = _input.DensityX;
            result.DensityY = _input.DensityY;
            
            return result;
        }
Exemplo n.º 2
0
 private Image PerformResize(Filter resizeFilter, int width, int height)
 {
     return new Image(_input.ColorModel, resizeFilter.Apply(_input.Raster, width, height));
 }