Apply() public method

public Apply ( byte imageData, int newWidth, int newHeight ) : ].byte[][
imageData byte
newWidth int
newHeight int
return ].byte[][
コード例 #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;
        }
コード例 #2
0
ファイル: ImageResizer.cs プロジェクト: synergo/FluxJpeg.Core
 private Image PerformResize(Filter resizeFilter, int width, int height)
 {
     return new Image(_input.ColorModel, resizeFilter.Apply(_input.Raster, width, height));
 }