Table of Contents

Class BitmapSource

Namespace
SharpDX.Direct2D1.Effects
Assembly
SharpDX.Direct2D1.dll

Built in BitmapSource effect.

public class BitmapSource : Effect
Inheritance
BitmapSource
Inherited Members

Constructors

BitmapSource(DeviceContext)

Initializes a new instance of BitmapSource effect.

public BitmapSource(DeviceContext context)

Parameters

context DeviceContext

Properties

AlphaMode

The alpha mode of the output. This can be either premultiplied or straight. See Alpha modes for more info.

public AlphaMode AlphaMode { get; set; }

Property Value

AlphaMode

EnableDpiCorrection

If you set this to true, the effect will scale the input image to convert the DPI reported by IWICBitmapSource to the DPI of the device context. The effect uses the interpolation mode you set with the InterpolationMode property. If you set this to false, the effect uses a DPI of 96.0 for the output image.

public bool EnableDpiCorrection { get; set; }

Property Value

bool

InterpolationMode

The interpolation mode used to scale the image. See Interpolation modes for more info. If the mode disables the mipmap, then BitmapSouce will cache the image at the resolution determined by the Scale and EnableDPICorrection properties.

public InterpolationMode InterpolationMode { get; set; }

Property Value

InterpolationMode

Orientation

A flip and/or rotation operation to be performed on the image. See Orientation for more info.

public BitmapSourceOrientation Orientation { get; set; }

Property Value

BitmapSourceOrientation

ScaleSource

The scale amount in the X and Y direction. The effect multiplies the width by the X value and the height by the Y value. This property is a defined as: (X scale, Y scale). The scale amounts are FLOAT, unitless, and must be positive or 0.

public RawVector2 ScaleSource { get; set; }

Property Value

RawVector2

WicBitmapSource

The BitmapSource containing the image data to be loaded.

public BitmapSource WicBitmapSource { get; set; }

Property Value

BitmapSource