AForge.Imaging.Filters.ResizeNearestNeighbor.ResizeNearestNeighbor C# (CSharp) Метод

ResizeNearestNeighbor() публичный Метод

Initializes a new instance of the ResizeNearestNeighbor class.
public ResizeNearestNeighbor ( int newWidth, int newHeight ) : System
newWidth int Width of the new image.
newHeight int Height of the new image.
Результат System
		public ResizeNearestNeighbor( int newWidth, int newHeight ) :
            base( newWidth, newHeight )
		{
            formatTranslations[PixelFormat.Format8bppIndexed]    = PixelFormat.Format8bppIndexed;
            formatTranslations[PixelFormat.Format24bppRgb]       = PixelFormat.Format24bppRgb;
            formatTranslations[PixelFormat.Format32bppRgb]       = PixelFormat.Format32bppRgb;
            formatTranslations[PixelFormat.Format32bppArgb]      = PixelFormat.Format32bppArgb;
            formatTranslations[PixelFormat.Format16bppGrayScale] = PixelFormat.Format16bppGrayScale;
            formatTranslations[PixelFormat.Format48bppRgb]       = PixelFormat.Format48bppRgb;
            formatTranslations[PixelFormat.Format64bppArgb]      = PixelFormat.Format64bppArgb;
        }