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

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

Apply filter to an unmanaged image or its part.
The method applies the filter directly to the provided source image.
Unsupported pixel format of the source image.
public ApplyInPlace ( UnmanagedImage image, Rectangle rect ) : void
image UnmanagedImage Unmanaged image to apply filter to.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
Результат void
        public void ApplyInPlace( UnmanagedImage image, Rectangle rect )
        {
            // check pixel format of the source image
            CheckSourceFormat( image.PixelFormat );

            // validate rectangle
            rect.Intersect( new Rectangle( 0, 0, image.Width, image.Height ) );

            // process the filter if rectangle is not empty
            if ( ( rect.Width | rect.Height ) != 0 )
                ProcessFilter( image, rect );
        }

Same methods

BaseInPlacePartialFilter::ApplyInPlace ( Bitmap image ) : void
BaseInPlacePartialFilter::ApplyInPlace ( Bitmap image, Rectangle rect ) : void
BaseInPlacePartialFilter::ApplyInPlace ( BitmapData imageData ) : void
BaseInPlacePartialFilter::ApplyInPlace ( BitmapData imageData, Rectangle rect ) : void
BaseInPlacePartialFilter::ApplyInPlace ( UnmanagedImage image ) : void