agentic-net-examples / kernel-filters
AGENTS.md1 starsChanged 7 months agoMITView on GitHub
C# examples for Kernel Filters using Aspose.Imaging for .NET
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository18 other files it gives its agents.
- aspose-imaging-examplesAGENTS.md
- conversionAGENTS.md
- convert-apngAGENTS.md
- convert-cdrAGENTS.md
- convert-cmx-imagesAGENTS.md
- convert-dicom-imagesAGENTS.md
- convert-eps-imagesAGENTS.md
- converting-wmf-and-emfAGENTS.md
- convert-open-document-graphicsAGENTS.md
- convert-raster-imageAGENTS.md
- convert-svg-to-raster-imagesAGENTS.md
- convert-webp-imagesAGENTS.md
- image-and-photo-filtersAGENTS.md
- manipulate-different-image-file-formatsAGENTS.md
- manipulating-imagesAGENTS.md
- merge-imagesAGENTS.md
- release-notes/agents.mdAGENTS.md
- working-with-drawing-imagesAGENTS.md
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
- Distinctive: line 143
If you’re looking to combine blur or sharpening with color adjustments, the Image And Photo Filters examples demonstrate how to chain …
≈ “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.
Files
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-specificusing Aspose.Imaging;(186/465 files) ← category-specificusing Aspose.Imaging.Sources;(82/465 files) ← category-specificusing Aspose.Imaging.FileFormats.Png;(69/465 files) ← category-specificusing Aspose.Imaging.ImageFilters.FilterOptions;(54/465 files) ← category-specificusing Aspose.Imaging.FileFormats.Svg;(35/465 files) ← category-specificusing Aspose.Imaging.ImageFilters.Convolution;(24/465 files) ← category-specificusing Aspose.Imaging.FileFormats.Jpeg;(9/465 files) ← category-specificusing Aspose.Imaging.FileFormats.Tiff;(6/465 files) ← category-specificusing System.Collections.Generic;(6/465 files)using Aspose.Imaging.FileFormats.Tiff.Enums;(5/465 files) ← category-specificusing Aspose.Imaging.FileFormats.Bmp;(2/465 files) ← category-specificusing 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-specificusing System.Threading;(1/465 files)
Files in this folder
| File | Key APIs | Description |
| load-a-png-image-from-the-templates-folder-and-apply-a-predefined-5x5-blur-box-filter.cs | PngOptions, RasterImage | Load 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.cs | JpegOptions, RasterImage | Create 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.cs | ConvolutionFilterOptions, PngOptions, RasterImage | Validate 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.cs | JpegOptions, RasterImage | Normalize 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.cs | BmpOptions, RasterImage | Adjust 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.cs | ConvolutionFilterOptions, PngOptions, RasterImage | Apply 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.cs | ConvolutionFilterOptions, TiffOptions | Generate 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.cs | PngOptions | Use 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.cs | PngOptions | Apply 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.cs | ConvolutionFilterOptions, JpegOptions, RasterImage | Apply 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.cs | JpegOptions | Apply 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.cs | PngOptions, RasterImage | Apply 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.cs | ConvolutionFilterOptions, PngOptions | Apply 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.cs | JpegOptions, RasterImage | Apply 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.cs | BmpImage, BmpOptions | Adjust 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.cs | BmpOptions, RasterImage | Normalize 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.cs | JpegOptions, RasterImage | Normalize 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.cs | JpegOptions, RasterImage | Normalize 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.cs | PngOptions, RasterImage | Create 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.cs | DeconvolutionFilterOptions, RasterImage, TiffOptions | Use 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.cs | Validate 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.cs | DeconvolutionFilterOptions, PngOptions, RasterImage | Validate 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.cs | RasterImage | Validate 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.cs | BmpOptions, RasterImage | Chain 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.cs | GaussianBlurFilterOptions, PngOptions, SharpenFilterOptions | Chain 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.cs | JpegOptions, RasterImage | Chain 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.cs | ConvolutionFilterOptions, JpegOptions, RasterImage | Chain 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.cs | JpegOptions, RasterImage | Batch 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.cs | JpegOptions, RasterImage | Batch 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.cs | PngOptions, RasterImage | Batch apply a sharpen filter to all PNG files in a directory and overwrite origi... |
| ...and 435 more files | View all |
Category Statistics
- Total examples: 465
- Failed: 0
- Pass rate: 100.0%
Key API Surface
AddFilterApngFrameApngImageApngOptionsBilateralSmoothingFilterOptionsBmpImageBmpOptionsConvolutionFilterConvolutionFilterOptionsDeconvolutionFilterOptionsEdgeDetectionFilterOptionsGaussWienerFilterOptionsGaussianBlurFilterOptionsGraphicsImageJpegImageJpegOptionsJsonSerializerOptionsLazyImageLoadOptionsMedianFilterOptionsMotionWienerFilterMotionWienerFilterOptionsMultiPageOptionsMultiplyFilterParallelOptionsPdfOptionsPngImagePngOptionsRasterCachedImageRasterImageSampleFilterSharpenFilterOptionsSolidBrushSvgImageSvgOptionsSvgRasterizationOptionsTiffFrameTiffImageTiffOptionsVectorRasterizationOptionsVignetteFilterWebPImageWebPOptions
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 withPngOptions. - 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, applyDeconvolutionFilterOptions, 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
GaussianBlurFilterOptionsvia 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
MotionBlurFilterOptionsas a kernel filter and then save the transformed image withPngOptions.
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 -->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
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.

