Table of Contents

Enum SpriteOptions

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Specifies additional aspects of how a sprite batch is to be drawn.
D2D1_SPRITE_OPTIONS

[Flags]
public enum SpriteOptions

Fields

None = 0

Default value. No special drawing configuration. This option yields the best drawing performance.

ClampToSourceRectangle = 1

Interpolation of bitmap pixels will be clamped to the sprite’s source rectangle. If the sub-images in your source bitmap have no pixels separating them, then you may see color bleeding when drawing them with D2D1_SPRITE_OPTIONS_NONE. In that case, consider adding borders between them with your sprite-packing tool, or use this option. Note that drawing sprites with this option enabled is slower than using SpriteOptions.None.