Win32 API 日本語リファレンス
ホームGraphics.Direct2D › ID2D1DeviceContext

ID2D1DeviceContext

COM
IIDe8f7fe7a-191c-466d-ad95-975678bda998継承元ID2D1RenderTarget自前メソッド開始 vtbl57

メソッド 35

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtblメソッド
57HRESULT CreateBitmap(D2D_SIZE_U size, void* sourceData, DWORD pitch, D2D1_BITMAP_PROPERTIES1* bitmapProperties, ID2D1Bitmap1** bitmap)
58HRESULT CreateBitmapFromWicBitmap(IWICBitmapSource* wicBitmapSource, D2D1_BITMAP_PROPERTIES1* bitmapProperties, ID2D1Bitmap1** bitmap)
59HRESULT CreateColorContext(D2D1_COLOR_SPACE space, BYTE* profile, DWORD profileSize, ID2D1ColorContext** colorContext)
60HRESULT CreateColorContextFromFilename(LPWSTR filename, ID2D1ColorContext** colorContext)
61HRESULT CreateColorContextFromWicColorContext(IWICColorContext* wicColorContext, ID2D1ColorContext** colorContext)
62HRESULT CreateBitmapFromDxgiSurface(IDXGISurface* surface, D2D1_BITMAP_PROPERTIES1* bitmapProperties, ID2D1Bitmap1** bitmap)
63HRESULT CreateEffect(GUID* effectId, ID2D1Effect** effect)
64HRESULT CreateGradientStopCollection(D2D1_GRADIENT_STOP* straightAlphaGradientStops, DWORD straightAlphaGradientStopsCount, D2D1_COLOR_SPACE preInterpolationSpace, D2D1_COLOR_SPACE postInterpolationSpace, D2D1_BUFFER_PRECISION bufferPrecision, D2D1_EXTEND_MODE extendMode, D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode, ID2D1GradientStopCollection1** gradientStopCollection1)
65HRESULT CreateImageBrush(ID2D1Image* image, D2D1_IMAGE_BRUSH_PROPERTIES* imageBrushProperties, D2D1_BRUSH_PROPERTIES* brushProperties, ID2D1ImageBrush** imageBrush)
66HRESULT CreateBitmapBrush(ID2D1Bitmap* bitmap, D2D1_BITMAP_BRUSH_PROPERTIES1* bitmapBrushProperties, D2D1_BRUSH_PROPERTIES* brushProperties, ID2D1BitmapBrush1** bitmapBrush)
67HRESULT CreateCommandList(ID2D1CommandList** commandList)
68BOOL IsDxgiFormatSupported(DXGI_FORMAT format)
69BOOL IsBufferPrecisionSupported(D2D1_BUFFER_PRECISION bufferPrecision)
70HRESULT GetImageLocalBounds(ID2D1Image* image, D2D_RECT_F* localBounds)
71HRESULT GetImageWorldBounds(ID2D1Image* image, D2D_RECT_F* worldBounds)
72HRESULT GetGlyphRunWorldBounds(D2D_POINT_2F baselineOrigin, DWRITE_GLYPH_RUN* glyphRun, DWRITE_MEASURING_MODE measuringMode, D2D_RECT_F* bounds)
73void GetDevice(ID2D1Device** device)
74void SetTarget(ID2D1Image* image)
75void GetTarget(ID2D1Image** image)
76void SetRenderingControls(D2D1_RENDERING_CONTROLS* renderingControls)
77void GetRenderingControls(D2D1_RENDERING_CONTROLS* renderingControls)
78void SetPrimitiveBlend(D2D1_PRIMITIVE_BLEND primitiveBlend)
79D2D1_PRIMITIVE_BLEND GetPrimitiveBlend()
80void SetUnitMode(D2D1_UNIT_MODE unitMode)
81D2D1_UNIT_MODE GetUnitMode()
82void DrawGlyphRun(D2D_POINT_2F baselineOrigin, DWRITE_GLYPH_RUN* glyphRun, DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription, ID2D1Brush* foregroundBrush, DWRITE_MEASURING_MODE measuringMode)
83void DrawImage(ID2D1Image* image, D2D_POINT_2F* targetOffset, D2D_RECT_F* imageRectangle, D2D1_INTERPOLATION_MODE interpolationMode, D2D1_COMPOSITE_MODE compositeMode)
84void DrawGdiMetafile(ID2D1GdiMetafile* gdiMetafile, D2D_POINT_2F* targetOffset)
85void DrawBitmap(ID2D1Bitmap* bitmap, D2D_RECT_F* destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode, D2D_RECT_F* sourceRectangle, D2D_MATRIX_4X4_F* perspectiveTransform)
86void PushLayer(D2D1_LAYER_PARAMETERS1* layerParameters, ID2D1Layer* layer)
87HRESULT InvalidateEffectInputRectangle(ID2D1Effect* effect, DWORD input, D2D_RECT_F* inputRectangle)
88HRESULT GetEffectInvalidRectangleCount(ID2D1Effect* effect, DWORD* rectangleCount)
89HRESULT GetEffectInvalidRectangles(ID2D1Effect* effect, D2D_RECT_F* rectangles, DWORD rectanglesCount)
90HRESULT GetEffectRequiredInputRectangles(ID2D1Effect* renderEffect, D2D_RECT_F* renderImageRectangle, D2D1_EFFECT_INPUT_DESCRIPTION* inputDescriptions, D2D_RECT_F* requiredInputRects, DWORD inputCount)
91void FillOpacityMask(ID2D1Bitmap* opacityMask, ID2D1Brush* brush, D2D_RECT_F* destinationRectangle, D2D_RECT_F* sourceRectangle)