A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/paintdotnet/PdnV5EffectSamples below:

paintdotnet/PdnV5EffectSamples: Sample effect plugins that show how to use the new Direct2D/GPU effects system available in Paint.NET v5.0+

Sample effect plugins that show how to use the new effect systems available in Paint.NET v5.0.

The new effect system is split into two parts: BitmapEffect, which run on the CPU, and GpuEffect which use Direct2D for rendering on the GPU.

BitmapEffect is the replacement for the "classic" Effect base class. It's very similar but but uses virtualized storage for inputs and outputs, permits access to all layers (and a composite of the whole image aka 'Document'), supports output pixel formats other than BGRA32, and has a more modern API (the "classic" effect plugin system dates back to 2004!).

GpuEffect, along with GpuImageEffect and GpuDrawingEffect, use Direct2D for rendering on the GPU. It has the same new features as BitmapEffect, except each input (layers, document, and selection mask) are also provided in a GPU-compatible format (IDeviceImage instead of IBitmapSource).

Microsoft has documentation for Direct2D effects, although some of it must be gleamed from their open-source Win2D project.

API reference for Paint.NET's built-in effect library


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4