[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics

GcD2DBitmapGraphics Class

Implements a Direct2D drawing surface.

To create an instance of this class, use the CreateGraphics(Color?) method.

Inheritance
GcD2DBitmapGraphics
Implements
Namespace: GrapeCity.Documents.Imaging.Windows
Assembly: DS.Documents.Imaging.Windows.dll
Syntax
public class GcD2DBitmapGraphics : GcDXGraphics, IDisposable
Public Class GcD2DBitmapGraphics
    Inherits GcDXGraphics
    Implements IDisposable

Fields

Name Description
Bitmap

The owning GcD2DBitmap object.

Properties

Name Description
Features

For internal use. Gets the features supported by this graphics.

SurfaceResolution

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

Methods

Name Description
AfterDrawAction()

Called after any draw action on the underlying render target.

BeforeDrawAction()

Called before any draw action on the underlying render target.

Composite(IGcTransparencyGroup, Rectangle, Point, float?)

For internal use. Composites this GcGraphics and the GrapeCity.Documents.Drawing.IGcTransparencyGroup created with the CreateTransparencyGroup(Rectangle, bool, bool, bool) method.

CreateTransparencyGroup(Rectangle, bool, bool, bool)

For internal use. Creates a GrapeCity.Documents.Drawing.IGcTransparencyGroup compatible with this graphics. This group can be used later for:

  1. Compose with graphics using the Composite(IGcTransparencyGroup, Rectangle, Point, float?) method
  2. Create a transparency mask from this group using the CreateTransparencyMask(IGcTransparencyGroup, TransparencyMaskType, Rectangle, IGcTransparencyMaskFilter) method Note! If the transparency group supports IDisposable interface it will be automatically disposed after usage.
CreateTransparencyMask(IGcTransparencyGroup, TransparencyMaskType, Rectangle, IGcTransparencyMaskFilter)

For internal use. Creates a transparency mask from a GrapeCity.Documents.Drawing.IGcTransparencyGroup, this mask can be specified for this graphics using SetTransparencyMask(object) method. Note! If the transparency mask supports IDisposable interface it will be automatically disposed after usage.

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

GetBlendMode()

For internal use. Returns the current blend mode.

InternalCreateClipRegion(IPath)

For internal use.

InternalCreateClipRegion(RectangleF)

For internal use.

IsBlendModeSupported(BlendMode)

Indicates whether this graphics implementation supports a specified blend mode.

GcD2DBitmapGraphics supports all blend modes, so this method always returns true.

PopTransparencyLayer()

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

PushTransparencyLayer(RectangleF?, float)

Adds a transparency layer to the current graphics. That layer receives all subsequent drawing operations until PopTransparencyLayer() is called.

SetBlendMode(BlendMode)

For internal use. Sets the current blend mode.

SetTransparencyMask(object)

For internal use. Sets a transparency mask for subsequent drawing operations, mask was created with IGcGraphicsLayer.CreateTransparencyMask(). Note! mask can be null, in this case mask should be removed.