[]
IDWriteBitmapRenderTarget
[Guid("5e5a32a3-8dff-4773-9ff6-0696eab77267")]
public class BitmapRenderTarget : ComObject, IDisposable, IUnknown
Initializes a new instance of the BitmapRenderTarget class.
public BitmapRenderTarget(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
GetCurrentTransform / SetCurrentTransform
public Matrix3x2 CurrentTransform { get; set; }
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)
baselineOriginX floatbaselineOriginY floatmeasuringMode MeasuringModeglyphRun GlyphRunrenderingParams RenderingParamstextColor intblackBoxRect RectLDraws 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)
baselineOriginX floatThe horizontal position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.
baselineOriginY floatThe vertical position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.
measuringMode MeasuringModeThe measuring method for glyphs in the run, used with the other properties to determine the rendering mode.
glyphRun GlyphRunThe structure containing the properties of the glyph run.
renderingParams RenderingParamsThe object that controls rendering behavior.
textColor intThe foreground color of the text.
HRESULT IDWriteBitmapRenderTarget::GetCurrentTransform([Out] DWRITE_MATRIX* transform)
public void GetCurrentTransform(out Matrix3x2 transform)
transform Matrix3x2HDC IDWriteBitmapRenderTarget::GetMemoryDC()
public IntPtr GetMemoryDC()
float IDWriteBitmapRenderTarget::GetPixelsPerDip()
public float GetPixelsPerDip()
HRESULT IDWriteBitmapRenderTarget::GetSize([Out] SIZE* size)
public Size2L GetSize()
HRESULT IDWriteBitmapRenderTarget::Resize([In] unsigned int width,[In] unsigned int height)
public void Resize(int width, int height)
width intheight intHRESULT IDWriteBitmapRenderTarget::SetCurrentTransform([In, Optional] const DWRITE_MATRIX* transform)
public void SetCurrentTransform(Matrix3x2? transform)
transform Matrix3x2?HRESULT IDWriteBitmapRenderTarget::SetPixelsPerDip([In] float pixelsPerDip)
public void SetPixelsPerDip(float pixelsPerDip)
pixelsPerDip floatPerforms an explicit conversion from System.IntPtr to BitmapRenderTarget.
public static explicit operator BitmapRenderTarget(IntPtr nativePointer)
nativePointer System.IntPtr