src/Foundation/Media/Gimela.Media.Imaging/Filters/BaseUsingCopyPartialFilter.cs
/// <summary>
/// Apply filter to an image in unmanaged memory.
/// </summary>
/// 
/// <param name="image">Source image in unmanaged memory to apply filter to.</param>
/// 
/// <returns>Returns filter's result obtained by applying the filter to
/// the source image.</returns>
/// 
/// <remarks>The method keeps the source image unchanged and returns
/// the result of image processing filter as new image.</remarks>
/// 
/// <exception cref="UnsupportedImageFormatException">Unsupported pixel format of the source image.</exception>
///
Apply filter to an image in unmanaged memory.
Apply filter to an image in unmanaged memory .
public UnmanagedImage Apply(UnmanagedImage image)
    {
      CheckSourceFormat(image.PixelFormat);
      UnmanagedImage dstImage = UnmanagedImage.Create(image.Width, image.Height, FormatTranslations[image.PixelFormat]);
      ProcessFilter(image, dstImage, new Rectangle(0, 0, image.Width, image.Height));
      return dstImage;
    }
public UnmanagedImage Apply ( UnmanagedImage image ) { CheckSourceFormat ( image . PixelFormat ) ; UnmanagedImage dstImage = UnmanagedImage . Create ( image . Width , image . Height , FormatTranslations [ image . PixelFormat ] ) ; ProcessFilter ( image , dstImage , new Rectangle ( 0 , 0 , image . Width , image . Height ) ) ; return dstImage ; }
Apply filter to an image in unmanaged memory.
Apply filter to an image in unmanaged memory .
// check pixel format of the source image // create new destination image // process the filter
Returns filter's result obtained by applying the filter to
the source image.
Returns filter ' s result obtained by applying the filter to the source image .
Unsupported pixel format of the source image.
Unsupported pixel format of the source image .
image
UnmanagedImage
Source image in unmanaged memory to apply filter to.
Source image in unmanaged memory to apply filter to .
remarks
The method keeps the source image unchanged and returns
the result of image processing filter as new image.
The method keeps the source image unchanged and returns the result of image processing filter as new image .