[]
Builtin BitmapSource effect.
public class BitmapSource : Effect, IDisposable, IUnknown
Initializes a new instance of the BitmapSource class.
public BitmapSource(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
The alpha mode of the output. This can be either premultiplied or straight. See Alpha modes for more info.
public AlphaMode AlphaMode { get; set; }
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; }
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; }
A flip and/or rotation operation to be performed on the image. See Orientation for more info.
public BitmapSourceOrientation Orientation { get; set; }
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 Vector2 defined as: (X scale, Y scale). The scale amounts are FLOAT, unitless, and must be positive or 0.
public Vector2 ScaleSource { get; set; }
The BitmapSource containing the image data to be loaded.
public BitmapSource WicBitmapSource { get; set; }
Initializes a new instance of BitmapSource effect.
public static BitmapSource Create(DeviceContext context)
context
DeviceContext