[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.RenderTarget

RenderTarget Class

ID2D1RenderTarget

Implements
Namespace: GrapeCity.Documents.DX.Direct2D
Assembly: GcDocs.DX.Windows.dll
Syntax
[Guid("2cd90694-12e2-11dc-9fed-001143a055f9")]
public class RenderTarget : Resource, IDisposable, IUnknown

Constructors

Name Description
RenderTarget(IntPtr)

Initializes a new instance of the RenderTarget class.

Fields

Name Description
DefaultStrokeWidth

Default stroke width used for all methods that are not explicitly using it. Default is set to 1.0f.

Properties

Name Description
DotsPerInch

Get or sets the dots per inch (DPI) of the render target.

StrokeWidth

Get or set the default stroke width used for all methods that are not explicitly using it. Default is set to 1.0f.

Methods

Name Description
BeginDraw()

void ID2D1RenderTarget::BeginDraw()

Clear(ColorF?)

void ID2D1RenderTarget::Clear([In, Optional] const D2D_COLOR_F* clearColor)

Create(Factory, Surface, ref RenderTargetProperties)

Creates a render target that draws to a DirectX Graphics Infrastructure (DXGI) surface.

CreateBitmap(Size2L, IntPtr, int, BitmapProperties)

HRESULT ID2D1RenderTarget::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* srcData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap)

CreateBitmapBrush(Bitmap, BitmapBrushProperties?, BrushProperties?)

HRESULT ID2D1RenderTarget::CreateBitmapBrush([In, Optional] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush** bitmapBrush)

CreateBitmapFromWicBitmap(BitmapSource, BitmapProperties?)

HRESULT ID2D1RenderTarget::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out] ID2D1Bitmap** bitmap)

CreateCompatibleRenderTarget(Size2F?, Size2L?, PixelFormat?, CompatibleRenderTargetOptions)

HRESULT ID2D1RenderTarget::CreateCompatibleRenderTarget([In, Optional] const D2D_SIZE_F* desiredSize,[In, Optional] const D2D_SIZE_U* desiredPixelSize,[In, Optional] const D2D1_PIXEL_FORMAT* desiredFormat,[In] D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options,[Out, Fast] ID2D1BitmapRenderTarget** bitmapRenderTarget)

CreateGradientStopCollection(GradientStop[], int, Gamma, ExtendMode)

HRESULT ID2D1RenderTarget::CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* gradientStops,[In] unsigned int gradientStopsCount,[In] D2D1_GAMMA colorInterpolationGamma,[In] D2D1_EXTEND_MODE extendMode,[Out, Fast] ID2D1GradientStopCollection** gradientStopCollection)

CreateLayer(Size2F?)

HRESULT ID2D1RenderTarget::CreateLayer([In, Optional] const D2D_SIZE_F* size,[Out, Fast] ID2D1Layer** layer)

CreateLinearGradientBrush(LinearGradientBrushProperties, BrushProperties?, GradientStopCollection)

HRESULT ID2D1RenderTarget::CreateLinearGradientBrush([In] const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES* linearGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out, Fast] ID2D1LinearGradientBrush** linearGradientBrush)

CreateMesh()

HRESULT ID2D1RenderTarget::CreateMesh([Out, Fast] ID2D1Mesh** mesh)

CreateRadialGradientBrush(ref RadialGradientBrushProperties, BrushProperties?, GradientStopCollection)

HRESULT ID2D1RenderTarget::CreateRadialGradientBrush([In] const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES* radialGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out, Fast] ID2D1RadialGradientBrush** radialGradientBrush)

CreateSharedBitmap(Guid, IntPtr, BitmapProperties?)

HRESULT ID2D1RenderTarget::CreateSharedBitmap([In] const GUID& riid,[In] void* data,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap)

CreateSolidColorBrush(ColorF, BrushProperties?)

HRESULT ID2D1RenderTarget::CreateSolidColorBrush([In] const D2D_COLOR_F* color,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1SolidColorBrush** solidColorBrush)

DrawBitmap(Bitmap, RectF, float, BitmapInterpolationMode)

Draws the specified bitmap after scaling it to the size of the specified rectangle.

DrawBitmap(Bitmap, RectF?, float, BitmapInterpolationMode, RectF?)

void ID2D1RenderTarget::DrawBitmap([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_F* destinationRectangle,[In] float opacity,[In] D2D1_BITMAP_INTERPOLATION_MODE interpolationMode,[In, Optional] const D2D_RECT_F* sourceRectangle)

DrawBitmap(Bitmap, float, BitmapInterpolationMode)

Draws the specified bitmap after scaling it to the size of the specified rectangle.

DrawBitmap(Bitmap, float, BitmapInterpolationMode, RectF)

Draws the specified bitmap after scaling it to the size of the specified rectangle.

DrawEllipse(Ellipse, Brush, float, StrokeStyle)

void ID2D1RenderTarget::DrawEllipse([In] const D2D1_ELLIPSE* ellipse,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)

DrawGeometry(Geometry, Brush)

Draws the outline of the specified geometry.

DrawGeometry(Geometry, Brush, float, StrokeStyle)

void ID2D1RenderTarget::DrawGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)

DrawGlyphRun(Point2F, GlyphRun, Brush, MeasuringMode)

void ID2D1RenderTarget::DrawGlyphRun([In] D2D_POINT_2F baselineOrigin,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] ID2D1Brush* foregroundBrush,[In] DWRITE_MEASURING_MODE measuringMode)

DrawGlyphRun(Point2F, IntPtr, Brush, MeasuringMode)

void ID2D1RenderTarget::DrawGlyphRun([In] D2D_POINT_2F baselineOrigin,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] ID2D1Brush* foregroundBrush,[In] DWRITE_MEASURING_MODE measuringMode)

DrawLine(Point2F, Point2F, Brush)

Draws a line between the specified points.

DrawLine(Point2F, Point2F, Brush, float, StrokeStyle)

void ID2D1RenderTarget::DrawLine([In] D2D_POINT_2F point0,[In] D2D_POINT_2F point1,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)

DrawRectangle(RectF, Brush, float, StrokeStyle)

void ID2D1RenderTarget::DrawRectangle([In] const D2D_RECT_F* rect,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)

DrawRoundedRectangle(RoundedRectangle, Brush, float, StrokeStyle)

void ID2D1RenderTarget::DrawRoundedRectangle([In] const D2D1_ROUNDED_RECT* roundedRect,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)

DrawText(string, TextFormat, RectF, Brush)

Draws the specified text using the format information provided by an C1.Win.DX.DirectWrite.TextFormat object.

DrawText(string, TextFormat, RectF, Brush, DrawTextOptions)

Draws the specified text using the format information provided by an C1.Win.DX.DirectWrite.TextFormat object.

DrawText(string, TextFormat, RectF, Brush, DrawTextOptions, MeasuringMode)

Draws the specified text using the format information provided by an C1.Win.DX.DirectWrite.TextFormat object.

DrawText(string, int, TextFormat, RectF, Brush, DrawTextOptions, MeasuringMode)

void ID2D1RenderTarget::DrawText([In, Buffer] const wchar_t* string,[In] unsigned int stringLength,[In] IDWriteTextFormat* textFormat,[In] const D2D_RECT_F* layoutRect,[In] ID2D1Brush* defaultForegroundBrush,[In] D2D1_DRAW_TEXT_OPTIONS options,[In] DWRITE_MEASURING_MODE measuringMode)

DrawTextLayout(Point2F, TextLayout, Brush)

Draws the formatted text described by the specified C1.Win.DX.DirectWrite.TextLayout object.

DrawTextLayout(Point2F, TextLayout, Brush, DrawTextOptions)

void ID2D1RenderTarget::DrawTextLayout([In] D2D_POINT_2F origin,[In] IDWriteTextLayout* textLayout,[In] ID2D1Brush* defaultForegroundBrush,[In] D2D1_DRAW_TEXT_OPTIONS options)

EndDraw(bool)

HRESULT ID2D1RenderTarget::EndDraw([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2)

EndDraw(out long, out long)

HRESULT ID2D1RenderTarget::EndDraw([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2)

EndDrawHR()

HRESULT ID2D1RenderTarget::EndDraw([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2)

FillEllipse(Ellipse, Brush)

void ID2D1RenderTarget::FillEllipse([In] const D2D1_ELLIPSE* ellipse,[In] ID2D1Brush* brush)

FillGeometry(Geometry, Brush)

Paints the interior of the specified geometry.

FillGeometry(Geometry, Brush, Brush)

void ID2D1RenderTarget::FillGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In, Optional] ID2D1Brush* opacityBrush)

FillMesh(Mesh, Brush)

void ID2D1RenderTarget::FillMesh([In] ID2D1Mesh* mesh,[In] ID2D1Brush* brush)

FillOpacityMask(Bitmap, Brush, OpacityMaskContent)

Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target.

FillOpacityMask(Bitmap, Brush, OpacityMaskContent, RectF?, RectF?)

void ID2D1RenderTarget::FillOpacityMask([In] ID2D1Bitmap* opacityMask,[In] ID2D1Brush* brush,[In] D2D1_OPACITY_MASK_CONTENT content,[In, Optional] const D2D_RECT_F* destinationRectangle,[In, Optional] const D2D_RECT_F* sourceRectangle)

FillRectangle(RectF, Brush)

void ID2D1RenderTarget::FillRectangle([In] const D2D_RECT_F* rect,[In] ID2D1Brush* brush)

FillRoundedRectangle(RoundedRectangle, Brush)

void ID2D1RenderTarget::FillRoundedRectangle([In] const D2D1_ROUNDED_RECT* roundedRect,[In] ID2D1Brush* brush)

Flush()

HRESULT ID2D1RenderTarget::Flush([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2)

Flush(out long, out long)

HRESULT ID2D1RenderTarget::Flush([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2)

GetAntialiasMode()

D2D1_ANTIALIAS_MODE ID2D1RenderTarget::GetAntialiasMode()

GetDpi(out float, out float)

void ID2D1RenderTarget::GetDpi([Out] float* dpiX,[Out] float* dpiY)

GetMaximumBitmapSize()

unsigned int ID2D1RenderTarget::GetMaximumBitmapSize()

GetPixelFormat()

D2D1_PIXEL_FORMAT ID2D1RenderTarget::GetPixelFormat()

GetPixelSize()

D2D_SIZE_U ID2D1RenderTarget::GetPixelSize()

GetSize()

D2D_SIZE_F ID2D1RenderTarget::GetSize()

GetTags(out long, out long)

void ID2D1RenderTarget::GetTags([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2)

GetTextAntialiasMode()

D2D1_TEXT_ANTIALIAS_MODE ID2D1RenderTarget::GetTextAntialiasMode()

GetTextRenderingParams()

void ID2D1RenderTarget::GetTextRenderingParams([Out, Optional] IDWriteRenderingParams** textRenderingParams)

GetTransform()

void ID2D1RenderTarget::GetTransform([Out] D2D_MATRIX_3X2_F* transform)

IsSupported(ref RenderTargetProperties)

BOOL ID2D1RenderTarget::IsSupported([In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties)

PopAxisAlignedClip()

void ID2D1RenderTarget::PopAxisAlignedClip()

PopLayer()

void ID2D1RenderTarget::PopLayer()

PushAxisAlignedClip(RectF, AntialiasMode)

void ID2D1RenderTarget::PushAxisAlignedClip([In] const D2D_RECT_F* clipRect,[In] D2D1_ANTIALIAS_MODE antialiasMode)

PushLayer(ref LayerParameters, Layer)

void ID2D1RenderTarget::PushLayer([In] const D2D1_LAYER_PARAMETERS* layerParameters,[In, Optional] ID2D1Layer* layer)

QueryGdiInterop()

Returns an instance of GdiInteropRenderTarget for the current RenderTarget.

RestoreDrawingState(DrawingStateBlock)

void ID2D1RenderTarget::RestoreDrawingState([In] ID2D1DrawingStateBlock* drawingStateBlock)

SaveDrawingState(DrawingStateBlock)

void ID2D1RenderTarget::SaveDrawingState([InOut] ID2D1DrawingStateBlock* drawingStateBlock)

SetAntialiasMode(AntialiasMode)

void ID2D1RenderTarget::SetAntialiasMode([In] D2D1_ANTIALIAS_MODE antialiasMode)

SetDpi(float, float)

void ID2D1RenderTarget::SetDpi([In] float dpiX,[In] float dpiY)

SetTags(long, long)

void ID2D1RenderTarget::SetTags([In] unsigned longlong tag1,[In] unsigned longlong tag2)

SetTextAntialiasMode(TextAntialiasMode)

void ID2D1RenderTarget::SetTextAntialiasMode([In] D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode)

SetTextRenderingParams(RenderingParams)

void ID2D1RenderTarget::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams)

SetTransform(Matrix3x2)

void ID2D1RenderTarget::SetTransform([In] const D2D_MATRIX_3X2_F* transform)

Operators

Name Description
explicit operator RenderTarget(IntPtr)

Performs an explicit conversion from IntPtr to RenderTarget.