[]
Implements a Direct2D drawing surface.
To create an instance of this class, use the CreateGraphics(Color?) method.
public class GcD2DBitmapGraphics : GcDXGraphics, IDisposable
The owning GcD2DBitmap object.
public readonly GcD2DBitmap Bitmap
public override GcGraphicsFeatures Features { get; }
Gets the resolution of the underlying drawing surface (pixels per inch).
public override float? SurfaceResolution { get; }
Called after any draw action on the underlying render target.
protected override void AfterDrawAction()
Called before any draw action on the underlying render target.
protected override void BeforeDrawAction()
public override void Composite(IGcTransparencyGroup srcLayer, Rectangle srcBounds, Point dstPosition, float? alpha)
srcLayer
GrapeCity.Documents.Drawing.IGcTransparencyGroupsrcBounds
System.Drawing.RectangledstPosition
System.Drawing.Pointalpha
float?public override IGcTransparencyGroup CreateTransparencyGroup(Rectangle size, bool isolated, bool knockout, bool pdfSoftMask)
size
System.Drawing.Rectangleisolated
boolknockout
boolpdfSoftMask
boolpublic override object CreateTransparencyMask(IGcTransparencyGroup layer, TransparencyMaskType maskType, Rectangle maskBounds)
layer
GrapeCity.Documents.Drawing.IGcTransparencyGroupmaskType
GrapeCity.Documents.Drawing.TransparencyMaskTypemaskBounds
System.Drawing.RectanglePerforms cleanup operations on managed and unmanaged resources.
protected override void Dispose(bool disposing)
disposing
boolFor internal use. Returns the current blend mode.
protected override BlendMode GetBlendMode()
For internal use.
protected override IClipRegion InternalCreateClipRegion(IPath graphicsPath)
graphicsPath
IPathFor internal use.
protected override IClipRegion InternalCreateClipRegion(RectangleF bounds)
bounds
System.Drawing.RectangleFIndicates whether this graphics implementation supports a specified blend mode.
GcD2DBitmapGraphics supports all blend modes, so this method always returns true.
public override bool IsBlendModeSupported(BlendMode blendMode)
blendMode
BlendModeThe blend mode to check.
true.
Stops redirecting drawing operations to the transparency layer that was created by the last PushTransparencyLayer(RectangleF?, float) call.
public override void PopTransparencyLayer()
Adds a transparency layer to the current graphics. That layer receives all subsequent drawing operations until PopTransparencyLayer() is called.
public override void PushTransparencyLayer(RectangleF? contentBounds, float opacity)
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 graphics.
opacity
floatAn opacity value that is applied uniformly to all drawings in the layer when compositing to the backplate.
For internal use. Sets the current blend mode.
protected override void SetBlendMode(BlendMode value)
value
BlendModepublic override void SetTransparencyMask(object nativeMask)
nativeMask
object