[]
Implements a Direct2D drawing surface.
public class GcWicBitmapGraphics : GcDXGraphics, IDisposable
Gets the height of the image, in DIPs.
public float Height { get; }
Gets the resolution of the underlying drawing surface (pixels per inch).
public override float? SurfaceResolution { get; }
Gets the source GcWicBitmap.
public GcWicBitmap WicBitmap { get; }
Gets the width of the image, in DIPs.
public float Width { get; }
Creates a BitmapBrush from a HatchBrush, can be overridden in derived class.
protected override BitmapBrush CreateHatchBrush(HatchBrush hb)
hb
HatchBrushPerforms cleanup operations on managed and unmanaged resources.
protected override void Dispose(bool disposing)
disposing
boolStops 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 GcWicBitmapGraphics so that it 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 GcWicBitmapGraphics.
opacity
floatAn opacity value that is applied uniformly to all drawings in the layer when compositing to the backplate.