[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.DeviceContext

DeviceContext Class

ID2D1DeviceContext

Implements
Namespace: C1.Util.DX.Direct2D
Assembly: C1.Win.C1DX.4.8.dll
Syntax
[Guid("e8f7fe7a-191c-466d-ad95-975678bda998")]
public class DeviceContext : RenderTarget, IDisposable, IUnknown

Constructors

Name Description
DeviceContext(IntPtr)

Initializes a new instance of the DeviceContext class.

Methods

Name Description
Create(Surface)

Initializes a new instance of the DeviceContext class.

Create(Surface, CreationProperties)

Initializes a new instance of the Device class.

Create(Device, DeviceContextOptions)

Initializes a new instance of the DeviceContext class using an existing Device.

CreateBitmap1(Size2L, IntPtr, int, BitmapProperties1)

HRESULT ID2D1DeviceContext::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* sourceData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES1* bitmapProperties,[Out, Fast] ID2D1Bitmap1** bitmap)

CreateBitmap1FromDxgiSurface(Surface, BitmapProperties1)

HRESULT ID2D1DeviceContext::CreateBitmapFromDxgiSurface([In] IDXGISurface* surface,[In, Optional] const D2D1_BITMAP_PROPERTIES1* bitmapProperties,[Out, Fast] ID2D1Bitmap1** bitmap)

CreateBitmap1FromWicBitmap(BitmapSource, BitmapProperties1)

HRESULT ID2D1DeviceContext::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES1* bitmapProperties,[Out] ID2D1Bitmap1** bitmap)

CreateBitmapBrush1(Bitmap, BitmapBrushProperties1?, BrushProperties?)

HRESULT ID2D1DeviceContext::CreateBitmapBrush([In, Optional] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES1* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush1** bitmapBrush)

CreateColorContext(ColorSpace, byte[], int)

HRESULT ID2D1DeviceContext::CreateColorContext([In] D2D1_COLOR_SPACE space,[In, Buffer, Optional] const unsigned char* profile,[In] unsigned int profileSize,[Out, Fast] ID2D1ColorContext** colorContext)

CreateColorContextFromFilename(string)

HRESULT ID2D1DeviceContext::CreateColorContextFromFilename([In] const wchar_t* filename,[Out, Fast] ID2D1ColorContext** colorContext)

CreateColorContextFromWicColorContext(ColorContext)

HRESULT ID2D1DeviceContext::CreateColorContextFromWicColorContext([In] IWICColorContext* wicColorContext,[Out, Fast] ID2D1ColorContext** colorContext)

CreateCommandList()

HRESULT ID2D1DeviceContext::CreateCommandList([Out, Fast] ID2D1CommandList** commandList)

CreateEffect(Guid)

HRESULT ID2D1DeviceContext::CreateEffect([In] const GUID& effectId,[Out, Fast] ID2D1Effect** effect)

CreateEffect(Guid, Effect)

HRESULT ID2D1DeviceContext::CreateEffect([In] const GUID& effectId,[Out, Fast] ID2D1Effect** effect)

CreateGradientStopCollection1(GradientStop[], int, ColorSpace, ColorSpace, BufferPrecision, ExtendMode, ColorInterpolationMode)

HRESULT ID2D1DeviceContext::CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* straightAlphaGradientStops,[In] unsigned int straightAlphaGradientStopsCount,[In] D2D1_COLOR_SPACE preInterpolationSpace,[In] D2D1_COLOR_SPACE postInterpolationSpace,[In] D2D1_BUFFER_PRECISION bufferPrecision,[In] D2D1_EXTEND_MODE extendMode,[In] D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode,[Out, Fast] ID2D1GradientStopCollection1** gradientStopCollection1)

CreateImageBrush(Image, ref ImageBrushProperties, BrushProperties?)

HRESULT ID2D1DeviceContext::CreateImageBrush([In, Optional] ID2D1Image* image,[In] const D2D1_IMAGE_BRUSH_PROPERTIES* imageBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1ImageBrush** imageBrush)

DrawBitmap(Bitmap, RectF?, float, InterpolationMode, RectF?, Matrix4x4?)

void ID2D1DeviceContext::DrawBitmap([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_F* destinationRectangle,[In] float opacity,[In] D2D1_INTERPOLATION_MODE interpolationMode,[In, Optional] const D2D_RECT_F* sourceRectangle,[In, Optional] const D2D_MATRIX_4X4_F* perspectiveTransform)

DrawBitmap(Bitmap, float, InterpolationMode)

Draws the bitmap.

DrawBitmap(Bitmap, float, InterpolationMode, Matrix4x4)

Draws the bitmap.

DrawBitmap(Bitmap, float, InterpolationMode, RectF, Matrix4x4)

Draws the bitmap.

DrawGdiMetafile(GdiMetafile, Point2F?)

void ID2D1DeviceContext::DrawGdiMetafile([In] ID2D1GdiMetafile* gdiMetafile,[In, Optional] const D2D_POINT_2F* targetOffset)

DrawGlyphRun(Point2F, GlyphRun, GlyphRunDescription, Brush, MeasuringMode)

void ID2D1DeviceContext::DrawGlyphRun([In] D2D_POINT_2F baselineOrigin,[In] const DWRITE_GLYPH_RUN* glyphRun,[In, Optional] const DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription,[In] ID2D1Brush* foregroundBrush,[In] DWRITE_MEASURING_MODE measuringMode)

DrawGlyphRun(Point2F, IntPtr, IntPtr, Brush, MeasuringMode)

void ID2D1DeviceContext::DrawGlyphRun([In] D2D_POINT_2F baselineOrigin,[In] const DWRITE_GLYPH_RUN* glyphRun,[In, Optional] const DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription,[In] ID2D1Brush* foregroundBrush,[In] DWRITE_MEASURING_MODE measuringMode)

DrawImage(Effect, InterpolationMode, CompositeMode)

Draws an image to the device context.

DrawImage(Effect, Point2F, InterpolationMode, CompositeMode)

Draws an image to the device context.

DrawImage(Image, InterpolationMode, CompositeMode)

Draws an image to the device context.

DrawImage(Image, Point2F, InterpolationMode, CompositeMode)

Draws an image to the device context.

DrawImage(Image, Point2F?, RectF?, InterpolationMode, CompositeMode)

void ID2D1DeviceContext::DrawImage([In] ID2D1Image* image,[In, Optional] const D2D_POINT_2F* targetOffset,[In, Optional] const D2D_RECT_F* imageRectangle,[In] D2D1_INTERPOLATION_MODE interpolationMode,[In] D2D1_COMPOSITE_MODE compositeMode)

FillOpacityMask(Bitmap, Brush)

No documentation.

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

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

GetDevice()

void ID2D1DeviceContext::GetDevice([Out] ID2D1Device** device)

GetEffectInvalidRectangleCount(Effect)

HRESULT ID2D1DeviceContext::GetEffectInvalidRectangleCount([In] ID2D1Effect* effect,[Out] unsigned int* rectangleCount)

GetEffectInvalidRectangles(Effect)

Gets the effect invalid rectangles.

GetEffectInvalidRectangles(Effect, RectF[], int)

HRESULT ID2D1DeviceContext::GetEffectInvalidRectangles([In] ID2D1Effect* effect,[Out, Buffer] D2D_RECT_F* rectangles,[In] unsigned int rectanglesCount)

GetEffectRequiredInputRectangles(Effect, EffectInputDescription[])

Gets the effect required input rectangles.

GetEffectRequiredInputRectangles(Effect, RectF, EffectInputDescription[])

Gets the effect required input rectangles.

GetEffectRequiredInputRectangles(Effect, RectF?, EffectInputDescription[], RectF[], int)

HRESULT ID2D1DeviceContext::GetEffectRequiredInputRectangles([In] ID2D1Effect* renderEffect,[In, Optional] const D2D_RECT_F* renderImageRectangle,[In, Buffer] const D2D1_EFFECT_INPUT_DESCRIPTION* inputDescriptions,[Out, Buffer] D2D_RECT_F* requiredInputRects,[In] unsigned int inputCount)

GetGlyphRunWorldBounds(Point2F, GlyphRun, MeasuringMode)

HRESULT ID2D1DeviceContext::GetGlyphRunWorldBounds([In] D2D_POINT_2F baselineOrigin,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] DWRITE_MEASURING_MODE measuringMode,[Out] D2D_RECT_F* bounds)

GetImageLocalBounds(Image)

HRESULT ID2D1DeviceContext::GetImageLocalBounds([In] ID2D1Image* image,[Out] D2D_RECT_F* localBounds)

GetImageWorldBounds(Image)

HRESULT ID2D1DeviceContext::GetImageWorldBounds([In] ID2D1Image* image,[Out] D2D_RECT_F* worldBounds)

GetPrimitiveBlend()

D2D1_PRIMITIVE_BLEND ID2D1DeviceContext::GetPrimitiveBlend()

GetRenderingControls()

void ID2D1DeviceContext::GetRenderingControls([Out] D2D1_RENDERING_CONTROLS* renderingControls)

GetTarget()

void ID2D1DeviceContext::GetTarget([Out, Optional] ID2D1Image** image)

GetUnitMode()

D2D1_UNIT_MODE ID2D1DeviceContext::GetUnitMode()

InvalidateEffectInputRectangle(Effect, int, RectF)

HRESULT ID2D1DeviceContext::InvalidateEffectInputRectangle([In] ID2D1Effect* effect,[In] unsigned int input,[In] const D2D_RECT_F* inputRectangle)

IsBufferPrecisionSupported(BufferPrecision)

BOOL ID2D1DeviceContext::IsBufferPrecisionSupported([In] D2D1_BUFFER_PRECISION bufferPrecision)

IsDxgiFormatSupported(Format)

BOOL ID2D1DeviceContext::IsDxgiFormatSupported([In] DXGI_FORMAT format)

PushLayer(ref LayerParameters1, Layer)

void ID2D1DeviceContext::PushLayer([In] const D2D1_LAYER_PARAMETERS1* layerParameters,[In, Optional] ID2D1Layer* layer)

SetPrimitiveBlend(PrimitiveBlend)

void ID2D1DeviceContext::SetPrimitiveBlend([In] D2D1_PRIMITIVE_BLEND primitiveBlend)

SetRenderingControls(RenderingControls)

void ID2D1DeviceContext::SetRenderingControls([In] const D2D1_RENDERING_CONTROLS* renderingControls)

SetTarget(Image)

void ID2D1DeviceContext::SetTarget([In, Optional] ID2D1Image* image)

SetUnitMode(UnitMode)

void ID2D1DeviceContext::SetUnitMode([In] D2D1_UNIT_MODE unitMode)

Operators

Name Description
explicit operator DeviceContext(IntPtr)

Performs an explicit conversion from IntPtr to DeviceContext.