Accord.Imaging.Filters.Crop.Crop C# (CSharp) Méthode

Crop() public méthode

Initializes a new instance of the Crop class.
public Crop ( Rectangle rect ) : System
rect System.Drawing.Rectangle Rectangle to crop.
Résultat System
        public Crop( Rectangle rect )
        {
            this.rect = rect;

            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;
        }