Class SampleMapRenderer
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Framework.dll
Transforms an image with a sample map. A sample map is an image (IDeviceImage) where the [x,y] (or [r,g]) component of
each pixel is used for reading a sample from the input image. The w (or a) component is used as an alpha value
that the sampled pixel is multiplied by (it should usually just be 1).
Multiple sample maps can be specified, and the outputs will be averaged together. This can be used to implement
multisample sub-pixel antialiasing.
public sealed class SampleMapRenderer : DynamicEffect, ISerializable, IDynamicEffect, IDynamicImage, IDeviceImage, IDirect2DResource, IObjectRef, IIsDisposed, IDisposable, IFactoryProperty, IInternalImpl
- Inheritance
-
SampleMapRenderer
- Implements
- Inherited Members
Remarks
Note: The device context must be rendering to a target that uses Float32 buffer precision. Otherwise the output will not be correct.