[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Effects.BitmapSource

Class BitmapSource

Namespace
GrapeCity.Documents.DX.Direct2D.Effects
Assembly
GcDocs.DX.Windows.dll

Builtin BitmapSource effect.

public class BitmapSource : Effect, IDisposable, IUnknown
Inheritance
object
BitmapSource
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

BitmapSource(IntPtr)

Initializes a new instance of the BitmapSource class.

public BitmapSource(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

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

public Vector2 ScaleSource { get; set; }

Property Value

Vector2

WicBitmapSource

The BitmapSource containing the image data to be loaded.

public BitmapSource WicBitmapSource { get; set; }

Property Value

BitmapSource

Methods

Create(DeviceContext)

Initializes a new instance of BitmapSource effect.

public static BitmapSource Create(DeviceContext context)

Parameters

context DeviceContext

Returns

BitmapSource