agentleFS
aspose-imagingaspose-imaging/agentic-net-examples/kernel-filters/agents.md

agentic-net-examples / kernel-filters

AGENTS.md1 starsChanged 7 months agoMITView on GitHub

C# examples for Kernel Filters using Aspose.Imaging for .NET

The file

We split this agents.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you’re looking to combine blur or sharpening with color adjustments, the Image And Photo Filters examples demonstrate how to chain …

    line 143

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
agents.md

AGENTS - Kernel Filters

Persona

You are a C# developer specializing in image processing using Aspose.Imaging for .NET, working within the Kernel Filters category. This folder contains standalone C# examples for Kernel Filters operations. See the root agents.md for repository-wide conventions and boundaries.

Required Namespaces

  • using System; (231/465 files)
  • using System.IO; (231/465 files)
  • using Aspose.Imaging.ImageOptions; (203/465 files) ← category-specific
  • using Aspose.Imaging; (186/465 files) ← category-specific
  • using Aspose.Imaging.Sources; (82/465 files) ← category-specific
  • using Aspose.Imaging.FileFormats.Png; (69/465 files) ← category-specific
  • using Aspose.Imaging.ImageFilters.FilterOptions; (54/465 files) ← category-specific
  • using Aspose.Imaging.FileFormats.Svg; (35/465 files) ← category-specific
  • using Aspose.Imaging.ImageFilters.Convolution; (24/465 files) ← category-specific
  • using Aspose.Imaging.FileFormats.Jpeg; (9/465 files) ← category-specific
  • using Aspose.Imaging.FileFormats.Tiff; (6/465 files) ← category-specific
  • using System.Collections.Generic; (6/465 files)
  • using Aspose.Imaging.FileFormats.Tiff.Enums; (5/465 files) ← category-specific
  • using Aspose.Imaging.FileFormats.Bmp; (2/465 files) ← category-specific
  • using System.Threading.Tasks; (2/465 files)
  • using System.Net.Http; (1/465 files)
  • using System.Linq; (1/465 files)
  • using Aspose.Imaging.FileFormats.Apng; (1/465 files) ← category-specific
  • using System.Threading; (1/465 files)

Files in this folder

FileKey APIsDescription
load-a-png-image-from-the-templates-folder-and-apply-a-predefined-5x5-blur-box-filter.csPngOptions, RasterImageLoad a PNG image from the templates folder and apply a predefined 5x5 blur box f...
create-a-custom-3x3-convolution-matrix-and-apply-it-to-a-jpeg-image-loaded-from-disk.csJpegOptions, RasterImageCreate a custom 3x3 convolution matrix and apply it to a JPEG image loaded from ...
validate-that-a-custom-7x7-kernel-has-odd-dimensions-before-applying-it-to-a-png-file.csConvolutionFilterOptions, PngOptions, RasterImageValidate that a custom 7x7 kernel has odd dimensions before applying it to a PNG...
normalize-a-custom-kernel-so-its-coefficients-sum-to-one-and-apply-to-a-jpeg-image.csJpegOptions, RasterImageNormalize a custom kernel so its coefficients sum to one and apply to a JPEG ima...
adjust-kernel-coefficients-to-increase-brightness-while-applying-a-5x5-blur-to-a-bmp-image.csBmpOptions, RasterImageAdjust kernel coefficients to increase brightness while applying a 5x5 blur to a...
apply-a-zero-sum-edge-detection-kernel-to-a-png-image-and-verify-black-background-with-highlighted-edges.csConvolutionFilterOptions, PngOptions, RasterImageApply a zero‑sum edge detection kernel to a PNG image and verify black backgroun...
generate-an-emboss-effect-using-a-3x3-kernel-on-a-jpeg-image-and-export-to-tiff-format.csConvolutionFilterOptions, TiffOptionsGenerate an emboss effect using a 3x3 kernel on a JPEG image and export to TIFF ...
use-a-custom-5x5-kernel-to-compute-average-pixel-values-and-apply-as-a-smoothing-filter-on-png.csPngOptionsUse a custom 5x5 kernel to compute average pixel values and apply as a smoothing...
apply-a-gaussian-blur-filter-with-sigma-1-5-to-a-bmp-image-and-save-as-png.csPngOptionsApply a Gaussian blur filter with sigma 1.5 to a BMP image and save as PNG.
apply-a-motion-blur-filter-with-a-45-degree-angle-on-a-tiff-image-and-export-to-jpeg.csConvolutionFilterOptions, JpegOptions, RasterImageApply a motion blur filter with a 45 degree angle on a TIFF image and export to ...
apply-a-motion-blur-filter-with-length-10-pixels-to-a-bmp-image-and-save-as-jpeg.csJpegOptionsApply a motion blur filter with length 10 pixels to a BMP image and save as JPEG...
apply-a-motion-blur-filter-with-horizontal-direction-to-a-tiff-image-and-export-to-png.csPngOptions, RasterImageApply a motion blur filter with horizontal direction to a TIFF image and export ...
apply-a-predefined-blur-box-filter-of-size-3x3-to-an-svg-image-and-save-as-png.csConvolutionFilterOptions, PngOptionsApply a predefined blur box filter of size 3x3 to an SVG image and save as PNG.
apply-a-predefined-blur-box-filter-to-all-png-files-in-a-folder-and-output-jpegs.csJpegOptions, RasterImageApply a predefined blur box filter to all PNG files in a folder and output JPEGs...
adjust-the-size-of-a-blur-box-kernel-from-3x3-to-7x7-to-increase-smoothing-on-bmp-file.csBmpImage, BmpOptionsAdjust the size of a blur box kernel from 3x3 to 7x7 to increase smoothing on BM...
normalize-a-blur-kernel-so-its-total-sum-equals-one-and-apply-to-a-bmp-image-for-uniform-blur.csBmpOptions, RasterImageNormalize a blur kernel so its total sum equals one and apply to a BMP image for...
normalize-a-custom-7x7-kernel-for-neutral-brightness-and-apply-to-a-jpeg-image-for-soft-focus.csJpegOptions, RasterImageNormalize a custom 7x7 kernel for neutral brightness and apply to a JPEG image f...
normalize-a-3x3-sharpening-kernel-to-preserve-overall-image-brightness-before-applying-to-jpeg.csJpegOptions, RasterImageNormalize a 3x3 sharpening kernel to preserve overall image brightness before ap...
create-a-deconvolution-filter-to-restore-a-previously-blurred-jpeg-image-and-save-as-png.csPngOptions, RasterImageCreate a deconvolution filter to restore a previously blurred JPEG image and sav...
use-the-deconvolution-filter-to-reverse-a-motion-blur-effect-on-a-png-image-and-save-as-tiff.csDeconvolutionFilterOptions, RasterImage, TiffOptionsUse the deconvolution filter to reverse a motion blur effect on a PNG image and ...
validate-that-the-sum-of-coefficients-in-a-custom-kernel-equals-one-to-avoid-brightness-shift.csValidate that the sum of coefficients in a custom kernel equals one to avoid bri...
validate-that-a-custom-kernel-s-dimensions-are-odd-before-applying-a-deconvolution-filter-to-png.csDeconvolutionFilterOptions, PngOptions, RasterImageValidate that a custom kernel's dimensions are odd before applying a deconvoluti...
validate-that-a-custom-sharpening-kernel-s-sum-exceeds-one-to-achieve-brightness-increase-on-png-image.csRasterImageValidate that a custom sharpening kernel's sum exceeds one to achieve brightness...
chain-a-sharpen-filter-followed-by-an-emboss-filter-on-a-svg-image-and-save-as-bmp.csBmpOptions, RasterImageChain a sharpen filter followed by an emboss filter on a SVG image and save as B...
chain-a-gaussian-blur-filter-followed-by-a-sharpen-filter-on-a-tiff-image-and-export-to-png.csGaussianBlurFilterOptions, PngOptions, SharpenFilterOptionsChain a Gaussian blur filter followed by a sharpen filter on a TIFF image and ex...
chain-three-filters-blur-edge-detection-and-sharpen-on-a-png-image-and-save-as-jpeg.csJpegOptions, RasterImageChain three filters: blur, edge detection, and sharpen on a PNG image and save a...
chain-a-blur-box-filter-then-an-emboss-filter-then-a-sharpen-filter-on-a-jpeg-image-for-complex-styling.csConvolutionFilterOptions, JpegOptions, RasterImageChain a blur box filter, then an emboss filter, then a sharpen filter on a JPEG ...
batch-process-a-collection-of-bmp-images-with-a-custom-edge-detection-kernel-and-output-jpegs.csJpegOptions, RasterImageBatch process a collection of BMP images with a custom edge detection kernel and...
batch-apply-a-predefined-blur-box-filter-to-all-png-files-in-a-folder-and-output-jpegs.csJpegOptions, RasterImageBatch apply a predefined blur box filter to all PNG files in a folder and output...
batch-apply-a-sharpen-filter-to-all-png-files-in-a-directory-and-overwrite-originals-safely.csPngOptions, RasterImageBatch apply a sharpen filter to all PNG files in a directory and overwrite origi...
...and 435 more filesView all

Category Statistics

  • Total examples: 465
  • Failed: 0
  • Pass rate: 100.0%

Key API Surface

  • AddFilter
  • ApngFrame
  • ApngImage
  • ApngOptions
  • BilateralSmoothingFilterOptions
  • BmpImage
  • BmpOptions
  • ConvolutionFilter
  • ConvolutionFilterOptions
  • DeconvolutionFilterOptions
  • EdgeDetectionFilterOptions
  • GaussWienerFilterOptions
  • GaussianBlurFilterOptions
  • Graphics
  • Image
  • JpegImage
  • JpegOptions
  • JsonSerializerOptions
  • LazyImage
  • LoadOptions
  • MedianFilterOptions
  • MotionWienerFilter
  • MotionWienerFilterOptions
  • MultiPageOptions
  • MultiplyFilter
  • ParallelOptions
  • PdfOptions
  • PngImage
  • PngOptions
  • RasterCachedImage
  • RasterImage
  • SampleFilter
  • SharpenFilterOptions
  • SolidBrush
  • SvgImage
  • SvgOptions
  • SvgRasterizationOptions
  • TiffFrame
  • TiffImage
  • TiffOptions
  • VectorRasterizationOptions
  • VignetteFilter
  • WebPImage
  • WebPOptions

Failed Tasks

All tasks passed ✅

Use Cases

  • When you need to rasterize an SVG to PNG and then apply a Gaussian blur in a .NET service, the “Rasterize SVG To PNG And Apply Gaussian Blur In C#” example shows the exact sequence of loading the SVG, converting it to a raster image, applying GaussianBlurFilterOptions, and saving the result.
  • If your application must blur an ICO image and output it as a PNG, the “Apply a Blur Filter to an ICO Image and Write the Processed Output to a New File” snippet demonstrates loading the ICO, casting to RasterImage, applying a Gaussian blur kernel, and writing the PNG with PngOptions.
  • For restoring detail in a blurred Photoshop file, the deconvolution filter on a PSD image using Aspose.Imaging example illustrates how to load a PSD, cast to RasterImage, apply DeconvolutionFilterOptions, and save the corrected file.
  • When preprocessing a multi‑page TIFF for OCR, the “Apply a Gaussian Blur Filter to a TIFF Image and Save the Resulting File” code provides a ready‑to‑use pattern for loading a TIFF, applying GaussianBlurFilterOptions via the kernel filter API, and persisting the blurred image.
  • To add a motion‑blur effect to an OTG graphic before converting it to PNG, the “Apply a Motion Blur Effect to an OTG Image and Persist the Processed Output to a File” sample shows how to use MotionBlurFilterOptions as a kernel filter and then save the transformed image with PngOptions.

Related Categories

Kernel Filters often complement format‑conversion tasks, so you’ll find the Convert SVG To Raster Images category useful when you need to handle SVG inputs before applying any kernel‑based processing.
If you’re looking to combine blur or sharpening with color adjustments, the Image And Photo Filters examples demonstrate how to chain multiple filter types together.
For broader image manipulation workflows—such as resizing, cropping, or format changes after a kernel filter—check out the Manipulating Images category, which provides a comprehensive set of operations that work seamlessly with the kernel filter examples shown here.

<!-- AUTOGENERATED:START -->

Updated: 2026-10-15 | Run: 20261015_060931 | Examples: 465

<!-- AUTOGENERATED:END -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.