[]
        
(Showing Draft Content)

C1.Win.Document.Util.C1DXGraphics

C1DXGraphics Class

Graphics object used Direct2D and DirectWrite to perform drawing.

Inheritance
C1Graphics
C1DXGraphics
Namespace: C1.Win.Document.Util
Assembly: C1.Win.Document.10.dll
Syntax
public class C1DXGraphics : C1Graphics, IDisposable, IC1DXTextLayoutOwner
Public Class C1DXGraphics
    Inherits C1Graphics
    Implements IDisposable, IC1DXTextLayoutOwner

Constructors

Name Description
C1DXGraphics()

Initializes a new instance of the C1DXGraphics class. Instance of the class performs all drawing to the internal image object. Call BeginGetImage/EndGetImage() methods to start/finish drawing.

C1DXGraphics(DeviceContext, Device)

For internal use. Initializes a new instance of the C1DXGraphics class.

C1DXGraphics(DeviceContext, Device, Factory1, ImagingFactory2, Factory)

For internal use. Initializes a new instance of the C1DXGraphics class.

Fields

Name Description
IsWindows8_0OrHigher

For internal use. Indicates whether current system is Windows 8.0 or higher.

IsWindows8_1OrHigher

For internal use. Indicates whether current system is Windows 8.1 or higher.

Properties

Name Description
Context

Gets the C1.Util.DX.Direct2D.DeviceContext object.

DWFactory

Gets the C1.Util.DX.DirectWrite.Factory object.

Device

Gets the C1.Util.DX.Direct2D.Device.

DpiX

Gets the horizontal resolution of the context.

DpiY

Gets the vertical resolution of the context.

Factory

Gets the C1.Util.DX.Direct2D.Factory1 object.

FillColor

Used for drawing SSRS pages under Windows 7.

GdiCompatibleContext

Indicates if DeviceContext is based on opaque GdiCompatible bitmap.

ImagingFactory

Gets the C1.Util.DX.WIC.ImagingFactory2 object.

PrintImagesScaleFactor

For internal use. See C1.Document.C1PrintOptions.ImagesScaleFactor.

SolidBrush

Gets the C1.Util.DX.Direct2D.SolidColorBrush object.

SolidPen

Gets the C1.Util.DX.Direct2D.StrokeStyle object.

Transform

Gets or sets transformation matrix.

Methods

Name Description
BeginGetImage(Size, Point)

Method of start drawing.

CleanUpContext()

Cleans up the C1.Util.DX.Direct2D.DeviceContext value.

CreateClipRegion(IPath)

Creates clip region for specified graphics path. Note! The clip region should NOT dispose passed graphics path, it is managed by the outer code.

CreateClipRegion(Rect)

Creates clip region for specified bounds.

CreatePath()

Creates graphics path.

CreateTextLayout()

Creates and initializes the C1.Document.Util.C1TextLayout object which can be used to render or measure text on the graphics.

Dispose(bool)
DrawGlyphRun(double, double, int, IntPtr, IntPtr, IntPtr, IntPtr, Color, IC1TextRangeBase, C1TextLayout, string)
DrawGlyphs(Font, ushort[], float[], string[], int, Color, Matrix3x2)
DrawRtf(object, string, int, int, Rect, bool, Color)
DrawVertGlyphs(Font, ushort[], float[], float[], float[], string[], int, Color, Matrix3x2)
EndGetImage(bool)

Method of end drawing.

FillEllipse(Color, Rect)
FillPath(Color, IPath)
FillRectangle(Color, Rect)
GetSmoothingMode()
InitContext(DeviceContext)

Sets the C1.Util.DX.Direct2D.DeviceContext value.

InternalCreateImage(IImage)
InternalCreateImage(GcBitmap)
InternalDrawEllipse(Rect, Color, double, PenStyle)
InternalDrawImage(INativeImage, Rect)
InternalDrawLine(double, double, double, double, Color, double, PenStyle)
InternalDrawPath(IPath, Color, double, PenStyle)
InternalDrawRectangle(Rect, Color, double, PenStyle)
InternalFillEllipse(C1Brush, Rect)
InternalFillPath(C1Brush, IPath)
InternalFillRectangle(C1Brush, Rect)
InternalRemoveClip(IClipRegion)
InternalSetClip(IClipRegion)
SetSmoothingMode(SmoothingMode)