[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.BitmapRenderTarget

Class BitmapRenderTarget

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWriteBitmapRenderTarget

[Guid("5e5a32a3-8dff-4773-9ff6-0696eab77267")]
public class BitmapRenderTarget : ComObject, IDisposable, IUnknown
Inheritance
object
BitmapRenderTarget
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

BitmapRenderTarget(IntPtr)

Initializes a new instance of the BitmapRenderTarget class.

public BitmapRenderTarget(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

CurrentTransform

GetCurrentTransform / SetCurrentTransform

public Matrix3x2 CurrentTransform { get; set; }

Property Value

Matrix3x2

Methods

DrawGlyphRun(float, float, MeasuringMode, GlyphRun, RenderingParams, int, out RectL)

HRESULT IDWriteBitmapRenderTarget::DrawGlyphRun([In] float baselineOriginX,[In] float baselineOriginY,[In] DWRITE_MEASURING_MODE measuringMode,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] IDWriteRenderingParams* renderingParams,[In] COLORREF textColor,[Out, Optional] RECT* blackBoxRect)

public void DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, RenderingParams renderingParams, int textColor, out RectL blackBoxRect)

Parameters

baselineOriginX float
baselineOriginY float
measuringMode MeasuringMode
glyphRun GlyphRun
renderingParams RenderingParams
textColor int
blackBoxRect RectL

DrawGlyphRun(float, float, MeasuringMode, GlyphRun, RenderingParams, int)

Draws a run of glyphs to a bitmap target at the specified position.

public void DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, RenderingParams renderingParams, int textColor)

Parameters

baselineOriginX float

The horizontal position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.

baselineOriginY float

The vertical position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.

measuringMode MeasuringMode

The measuring method for glyphs in the run, used with the other properties to determine the rendering mode.

glyphRun GlyphRun

The structure containing the properties of the glyph run.

renderingParams RenderingParams

The object that controls rendering behavior.

textColor int

The foreground color of the text.

GetCurrentTransform(out Matrix3x2)

HRESULT IDWriteBitmapRenderTarget::GetCurrentTransform([Out] DWRITE_MATRIX* transform)

public void GetCurrentTransform(out Matrix3x2 transform)

Parameters

transform Matrix3x2

GetMemoryDC()

HDC IDWriteBitmapRenderTarget::GetMemoryDC()

public IntPtr GetMemoryDC()

Returns

System.IntPtr

GetPixelsPerDip()

float IDWriteBitmapRenderTarget::GetPixelsPerDip()

public float GetPixelsPerDip()

Returns

float

GetSize()

HRESULT IDWriteBitmapRenderTarget::GetSize([Out] SIZE* size)

public Size2L GetSize()

Returns

Size2L

Resize(int, int)

HRESULT IDWriteBitmapRenderTarget::Resize([In] unsigned int width,[In] unsigned int height)

public void Resize(int width, int height)

Parameters

width int
height int

SetCurrentTransform(Matrix3x2?)

HRESULT IDWriteBitmapRenderTarget::SetCurrentTransform([In, Optional] const DWRITE_MATRIX* transform)

public void SetCurrentTransform(Matrix3x2? transform)

Parameters

transform Matrix3x2?

SetPixelsPerDip(float)

HRESULT IDWriteBitmapRenderTarget::SetPixelsPerDip([In] float pixelsPerDip)

public void SetPixelsPerDip(float pixelsPerDip)

Parameters

pixelsPerDip float

Operators

explicit operator BitmapRenderTarget(IntPtr)

Performs an explicit conversion from System.IntPtr to BitmapRenderTarget.

public static explicit operator BitmapRenderTarget(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

BitmapRenderTarget