[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcWicBitmapGraphics

Class GcWicBitmapGraphics

Namespace
GrapeCity.Documents.Imaging.Windows
Assembly
GcDocs.Imaging.Windows.dll

Implements a Direct2D drawing surface.

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

Properties

Height

Gets the height of the image, in DIPs.

public float Height { get; }

Property Value

float

SurfaceResolution

Gets the resolution of the underlying drawing surface (pixels per inch).

public override float? SurfaceResolution { get; }

Property Value

float?

WicBitmap

Gets the source GcWicBitmap.

public GcWicBitmap WicBitmap { get; }

Property Value

GcWicBitmap

Width

Gets the width of the image, in DIPs.

public float Width { get; }

Property Value

float

Methods

CreateHatchBrush(HatchBrush)

Creates a BitmapBrush from a HatchBrush, can be overridden in derived class.

protected override BitmapBrush CreateHatchBrush(HatchBrush hb)

Parameters

hb HatchBrush

Returns

BitmapBrush

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

PopTransparencyLayer()

Stops redirecting drawing operations to the transparency layer that was created by the last PushTransparencyLayer(RectangleF?, float) call.

public override void PopTransparencyLayer()

PushTransparencyLayer(RectangleF?, float)

Adds a transparency layer to the GcWicBitmapGraphics so that it receives all subsequent drawing operations until PopTransparencyLayer() is called.

public override void PushTransparencyLayer(RectangleF? contentBounds, float opacity)

Parameters

contentBounds System.Drawing.RectangleF?

The content bounds of the transparency layer. Content won't render outside these bounds. When set to null, the content bounds are effectively taken to be the bounds of the current GcWicBitmapGraphics.

opacity float

An opacity value that is applied uniformly to all drawings in the layer when compositing to the backplate.