[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Effects.BitmapSource

BitmapSource Class

Builtin BitmapSource effect.

Implements
Namespace: C1.Util.DX.Direct2D.Effects
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public class BitmapSource : Effect, IDisposable, IUnknown

Constructors

Name Description
BitmapSource(IntPtr)

Initializes a new instance of the BitmapSource class.

Properties

Name Description
AlphaMode

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

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.

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.

Orientation

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

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 Vector2 defined as: (X scale, Y scale). The scale amounts are FLOAT, unitless, and must be positive or 0.

WicBitmapSource

The BitmapSource containing the image data to be loaded.

Methods

Name Description
Create(DeviceContext)

Initializes a new instance of BitmapSource effect.