Class BitmapSource
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
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
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
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
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
public RawVector2 ScaleSource { get; set; }
Property Value
- RawVector2
WicBitmapSource
The BitmapSource containing the image data to be loaded.
public BitmapSource WicBitmapSource { get; set; }