Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::Windows::Graphics::DeviceContext Class Reference

#include <HWGraphics.h>

Inheritance diagram for Harlinn::Windows::Graphics::DeviceContext:
[legend]
Collaboration diagram for Harlinn::Windows::Graphics::DeviceContext:
[legend]

Public Types

typedef RenderTarget Base
 
- Public Types inherited from Harlinn::Windows::Graphics::RenderTarget
typedef Resource Base
 
- Public Types inherited from Harlinn::Common::Core::Unknown
typedef IUnknown InterfaceType
 

Public Member Functions

void CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties, ID2D1Bitmap1 **bitmap) const
 Creates a bitmap that can be used as a target surface, for reading back to the CPU, or as a source for the DrawBitmap and BitmapBrush APIs. In addition, color context information can be passed to the bitmap.
 
void CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmap (const D2D1_SIZE_U &size, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmap (const D2D1_SIZE_U &size, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmap (const D2D1_SIZE_U &size, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmap (const D2D1_SIZE_U &size, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap)
 
Bitmap1 CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties) const
 
Bitmap1 CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties) const
 
Bitmap1 CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties) const
 
Bitmap1 CreateBitmap (const D2D1_SIZE_U &size, const void *sourceData, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties) const
 
Bitmap1 CreateBitmap (const D2D1_SIZE_U &size, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties) const
 
Bitmap1 CreateBitmap (const D2D1_SIZE_U &size, UINT32 pitch, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties) const
 
Bitmap1 CreateBitmap (const D2D1_SIZE_U &size, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties) const
 
Bitmap1 CreateBitmap (const D2D1_SIZE_U &size, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties) const
 
void CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, D2D1_BITMAP_PROPERTIES1 *bitmapProperties, ID2D1Bitmap1 **bitmap) const
 Create a D2D bitmap by copying a WIC bitmap.
 
void CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, ID2D1Bitmap1 **bitmap) const
 
Bitmap1 CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, D2D1_BITMAP_PROPERTIES1 *bitmapProperties=nullptr) const
 
Bitmap1 CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, D2D1_BITMAP_PROPERTIES1 &bitmapProperties) const
 
HW_EXPORT void CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, D2D1_BITMAP_PROPERTIES1 *bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
HW_EXPORT void CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
HW_EXPORT void CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, ID2D1Bitmap1 **bitmap) const
 
HW_EXPORT Bitmap1 CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, D2D1_BITMAP_PROPERTIES1 *bitmapProperties=nullptr) const
 
HW_EXPORT Bitmap1 CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, D2D1_BITMAP_PROPERTIES1 &bitmapProperties) const
 
void CreateColorContext (D2D1_COLOR_SPACE space, CONST BYTE *profile, UINT32 profileSize, ID2D1ColorContext **colorContext) const
 Creates a color context from a color space. If the space is Custom, the context is initialized from the profile/profileSize arguments. Otherwise the context is initialized with the profile bytes associated with the space and profile/profileSize are ignored.
 
void CreateColorContext (D2D1_COLOR_SPACE space, ID2D1ColorContext **colorContext) const
 
void CreateColorContext (ID2D1ColorContext **colorContext) const
 
ColorContext CreateColorContext (D2D1_COLOR_SPACE space=D2D1_COLOR_SPACE_SRGB, CONST BYTE *profile=nullptr, UINT32 profileSize=0) const
 
void CreateColorContextFromFilename (PCWSTR filename, ID2D1ColorContext **colorContext) const
 Creates a color context by loading it from the specified filename. The profile bytes are the contents of the file specified by Filename.
 
ColorContext CreateColorContextFromFilename (PCWSTR filename) const
 
void CreateColorContextFromWicColorContext (IWICColorContext *wicColorContext, ID2D1ColorContext **colorContext) const
 Creates a color context from an IWICColorContext.
 
ColorContext CreateColorContextFromWicColorContext (IWICColorContext *wicColorContext) const
 
HW_EXPORT void CreateColorContextFromWicColorContext (const Imaging::ColorContext &wicColorContext, ID2D1ColorContext **colorContext) const
 
HW_EXPORT ColorContext CreateColorContextFromWicColorContext (const Imaging::ColorContext &wicColorContext) const
 
void CreateBitmapFromDxgiSurface (IDXGISurface *surface, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties, ID2D1Bitmap1 **bitmap) const
 Creates a bitmap from a DXGI surface that can be set as a target surface or have additional color context information specified.
 
void CreateBitmapFromDxgiSurface (IDXGISurface *surface, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
void CreateBitmapFromDxgiSurface (const T &surface, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
void CreateBitmapFromDxgiSurface (const T &surface, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties, ID2D1Bitmap1 **bitmap) const
 
void CreateBitmapFromDxgiSurface (IDXGISurface *surface, ID2D1Bitmap1 **bitmap) const
 
template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
void CreateBitmapFromDxgiSurface (const T &surface, ID2D1Bitmap1 **bitmap) const
 
Bitmap1 CreateBitmapFromDxgiSurface (IDXGISurface *surface, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties=nullptr) const
 
Bitmap1 CreateBitmapFromDxgiSurface (IDXGISurface *surface, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties) const
 
template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
Bitmap1 CreateBitmapFromDxgiSurface (const T &surface, const D2D1_BITMAP_PROPERTIES1 *bitmapProperties=nullptr) const
 
template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
Bitmap1 CreateBitmapFromDxgiSurface (const T &surface, const D2D1_BITMAP_PROPERTIES1 &bitmapProperties) const
 
void CreateEffect (REFCLSID effectId, ID2D1Effect **effect) const
 Create a new effect, the effect must either be built in or previously registered through ID2D1Factory1::RegisterEffectFromStream or ID2D1Factory1::RegisterEffectFromString.
 
Effect CreateEffect (REFCLSID effectId) const
 
void CreateGradientStopCollection (CONST D2D1_GRADIENT_STOP *straightAlphaGradientStops, UINT32 straightAlphaGradientStopsCount, D2D1_COLOR_SPACE preInterpolationSpace, D2D1_COLOR_SPACE postInterpolationSpace, D2D1_BUFFER_PRECISION bufferPrecision, D2D1_EXTEND_MODE extendMode, D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode, ID2D1GradientStopCollection1 **gradientStopCollection1) const
 A gradient stop collection represents a set of stops in an ideal unit length. This is the source resource for a linear gradient and radial gradient brush.
 
GradientStopCollection1 CreateGradientStopCollection (CONST D2D1_GRADIENT_STOP *straightAlphaGradientStops, UINT32 straightAlphaGradientStopsCount, D2D1_COLOR_SPACE preInterpolationSpace=D2D1_COLOR_SPACE_SRGB, D2D1_COLOR_SPACE postInterpolationSpace=D2D1_COLOR_SPACE_SRGB, D2D1_BUFFER_PRECISION bufferPrecision=D2D1_BUFFER_PRECISION_8BPC_UNORM, D2D1_EXTEND_MODE extendMode=D2D1_EXTEND_MODE_CLAMP, D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode=D2D1_COLOR_INTERPOLATION_MODE_PREMULTIPLIED) const
 
void CreateImageBrush (ID2D1Image *image, const D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties, ID2D1ImageBrush **imageBrush) const
 Creates an image brush. The input image can be any type of image, including a bitmap, effect, or a command list.
 
void CreateImageBrush (const Image &image, const D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties, ID2D1ImageBrush **imageBrush) const
 
void CreateImageBrush (ID2D1Image *image, const D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties, ID2D1ImageBrush **imageBrush) const
 
void CreateImageBrush (const Image &image, const D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties, ID2D1ImageBrush **imageBrush) const
 
void CreateImageBrush (ID2D1Image *image, const D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, ID2D1ImageBrush **imageBrush) const
 
void CreateImageBrush (const Image &image, const D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, ID2D1ImageBrush **imageBrush) const
 
void CreateImageBrush (ID2D1Image *image, const D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, ID2D1ImageBrush **imageBrush) const
 
void CreateImageBrush (const Image &image, const D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, ID2D1ImageBrush **imageBrush) const
 
ImageBrush CreateImageBrush (ID2D1Image *image, const D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
ImageBrush CreateImageBrush (const Image &image, const D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
ImageBrush CreateImageBrush (ID2D1Image *image, const D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
ImageBrush CreateImageBrush (const Image &image, const D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
ImageBrush CreateImageBrush (ID2D1Image *image, const D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
ImageBrush CreateImageBrush (const Image &image, const D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
void CreateBitmapBrush (ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties, ID2D1BitmapBrush1 **bitmapBrush) const
 Creates a bitmap brush, the input image is a Direct2D bitmap object.
 
template<typename T >
requires std::is_base_of_v<Bitmap,T>
void CreateBitmapBrush (const T &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties, ID2D1BitmapBrush1 **bitmapBrush) const
 
void CreateBitmapBrush (ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, ID2D1BitmapBrush1 **bitmapBrush) const
 
template<typename T >
requires std::is_base_of_v<Bitmap, T>
void CreateBitmapBrush (const T &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, ID2D1BitmapBrush1 **bitmapBrush) const
 
void CreateBitmapBrush (ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties, ID2D1BitmapBrush1 **bitmapBrush) const
 
template<typename T >
requires std::is_base_of_v<Bitmap, T>
void CreateBitmapBrush (const T &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties, ID2D1BitmapBrush1 **bitmapBrush) const
 
void CreateBitmapBrush (ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, ID2D1BitmapBrush1 **bitmapBrush) const
 
template<typename T >
requires std::is_base_of_v<Bitmap, T>
void CreateBitmapBrush (const T &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, ID2D1BitmapBrush1 **bitmapBrush) const
 
void CreateBitmapBrush (ID2D1Bitmap *bitmap, ID2D1BitmapBrush1 **bitmapBrush) const
 
template<typename T >
requires std::is_base_of_v<Bitmap, T>
void CreateBitmapBrush (const T &bitmap, ID2D1BitmapBrush1 **bitmapBrush) const
 
BitmapBrush1 CreateBitmapBrush (ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties=nullptr, const D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
template<typename T >
requires std::is_base_of_v<Bitmap, T>
BitmapBrush1 CreateBitmapBrush (const T &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties=nullptr, const D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
BitmapBrush1 CreateBitmapBrush (ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
template<typename T >
requires std::is_base_of_v<Bitmap, T>
BitmapBrush1 CreateBitmapBrush (const T &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
BitmapBrush1 CreateBitmapBrush (ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
template<typename T >
requires std::is_base_of_v<Bitmap, T>
BitmapBrush1 CreateBitmapBrush (const T &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
void CreateCommandList (ID2D1CommandList **commandList) const
 Creates a new command list.
 
CommandList CreateCommandList () const
 
bool IsDxgiFormatSupported (DXGI_FORMAT format) const
 Indicates whether the format is supported by D2D.
 
bool IsBufferPrecisionSupported (D2D1_BUFFER_PRECISION bufferPrecision) const
 Indicates whether the buffer precision is supported by D2D.
 
void GetImageLocalBounds (ID2D1Image *image, D2D1_RECT_F *localBounds) const
 Gets the bounds of an image without the world transform of the context applied.
 
void GetImageLocalBounds (const Image &image, D2D1_RECT_F *localBounds) const
 
void GetImageLocalBounds (ID2D1Image *image, D2D1_RECT_F &localBounds) const
 
void GetImageLocalBounds (const Image &image, D2D1_RECT_F &localBounds) const
 
void GetImageWorldBounds (ID2D1Image *image, D2D1_RECT_F *worldBounds) const
 Gets the bounds of an image with the world transform of the context applied.
 
void GetImageWorldBounds (const Image &image, D2D1_RECT_F *worldBounds) const
 
void GetImageWorldBounds (ID2D1Image *image, D2D1_RECT_F &worldBounds) const
 
void GetImageWorldBounds (const Image &image, D2D1_RECT_F &worldBounds) const
 
void GetGlyphRunWorldBounds (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN *glyphRun, DWRITE_MEASURING_MODE measuringMode, D2D1_RECT_F *bounds) const
 Gets the world-space bounds in DIPs of the glyph run using the device context DPI.
 
void GetGlyphRunWorldBounds (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN &glyphRun, DWRITE_MEASURING_MODE measuringMode, D2D1_RECT_F &bounds) const
 
void GetDevice (_Outptr_ ID2D1Device **device) const
 Retrieves the device associated with this device context.
 
Device GetDevice () const
 
void SetTarget (ID2D1Image *image) const
 The bitmap or command list to which the Direct2D device context will now render.
 
void SetTarget (const Image &image) const
 
void GetTarget (ID2D1Image **image) const
 Gets the target currently associated with the device context.
 
Image GetTarget () const
 
void SetRenderingControls (const D2D1_RENDERING_CONTROLS *renderingControls) const
 Sets tuning parameters for internal rendering inside the device context.
 
void SetRenderingControls (const D2D1_RENDERING_CONTROLS &renderingControls) const
 
void GetRenderingControls (D2D1_RENDERING_CONTROLS *renderingControls) const
 Gets the rendering controls that have been applied to the context.
 
void GetRenderingControls (D2D1_RENDERING_CONTROLS &renderingControls) const
 
void SetPrimitiveBlend (D2D1_PRIMITIVE_BLEND primitiveBlend=D2D1_PRIMITIVE_BLEND_SOURCE_OVER) const
 Changes the primitive blending mode for all of the rendering operations.
 
D2D1_PRIMITIVE_BLEND GetPrimitiveBlend () const
 Returns the primitive blend currently selected into the device context.
 
void SetUnitMode (D2D1_UNIT_MODE unitMode) const
 Sets what units will be used to interpret values passed into the device context.
 
D2D1_UNIT_MODE GetUnitMode () const
 Returns the unit mode currently set on the device context.
 
void DrawGlyphRun (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN *glyphRun, const DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription, ID2D1Brush *foregroundBrush, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 Draws the glyph run with an extended description to describe the glyphs.
 
void DrawGlyphRun (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN *glyphRun, const DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription, const Brush &foregroundBrush, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 
void DrawGlyphRun (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN &glyphRun, const DWRITE_GLYPH_RUN_DESCRIPTION &glyphRunDescription, ID2D1Brush *foregroundBrush, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 
void DrawGlyphRun (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN &glyphRun, const DWRITE_GLYPH_RUN_DESCRIPTION &glyphRunDescription, const Brush &foregroundBrush, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 
void DrawImage (ID2D1Image *image, const D2D1_POINT_2F *targetOffset=nullptr, const D2D1_RECT_F *imageRectangle=nullptr, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 Draw an image to the device context. The image represents either a concrete bitmap or the output of an effect graph.
 
void DrawImage (const Image &image, const D2D1_POINT_2F *targetOffset=nullptr, const D2D1_RECT_F *imageRectangle=nullptr, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (ID2D1Effect *effect, const D2D1_POINT_2F *targetOffset=nullptr, const D2D1_RECT_F *imageRectangle=nullptr, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (const Effect &effect, const D2D1_POINT_2F *targetOffset=nullptr, const D2D1_RECT_F *imageRectangle=nullptr, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (ID2D1Image *image, D2D1_INTERPOLATION_MODE interpolationMode, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER)
 
void DrawImage (const Image &image, D2D1_INTERPOLATION_MODE interpolationMode, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER)
 
void DrawImage (ID2D1Effect *effect, D2D1_INTERPOLATION_MODE interpolationMode, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (const Effect &effect, D2D1_INTERPOLATION_MODE interpolationMode, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (ID2D1Image *image, const D2D1_POINT_2F &targetOffset, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (const Image &image, const D2D1_POINT_2F &targetOffset, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (ID2D1Effect *effect, const D2D1_POINT_2F &targetOffset, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (const Effect &effect, const D2D1_POINT_2F &targetOffset, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (ID2D1Image *image, const D2D1_POINT_2F &targetOffset, const D2D1_RECT_F &imageRectangle, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (const Image &image, const D2D1_POINT_2F &targetOffset, const D2D1_RECT_F &imageRectangle, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (ID2D1Effect *effect, const D2D1_POINT_2F &targetOffset, const D2D1_RECT_F &imageRectangle, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawImage (const Effect &effect, const D2D1_POINT_2F &targetOffset, const D2D1_RECT_F &imageRectangle, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, D2D1_COMPOSITE_MODE compositeMode=D2D1_COMPOSITE_MODE_SOURCE_OVER) const
 
void DrawGdiMetafile (ID2D1GdiMetafile *gdiMetafile, const D2D1_POINT_2F *targetOffset=nullptr) const
 Draw a metafile to the device context.
 
void DrawGdiMetafile (const GdiMetafile &gdiMetafile, const D2D1_POINT_2F *targetOffset=nullptr) const
 
void DrawGdiMetafile (ID2D1GdiMetafile *gdiMetafile, const D2D1_POINT_2F &targetOffset) const
 
void DrawGdiMetafile (const GdiMetafile &gdiMetafile, const D2D1_POINT_2F &targetOffset) const
 
void DrawBitmap (ID2D1Bitmap *bitmap, const D2D1_RECT_F *destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, const D2D1_RECT_F *sourceRectangle=nullptr, const D2D1_MATRIX_4X4_F *perspectiveTransform=nullptr) const
 Draws a bitmap to the render target.
 
void DrawBitmap (const Bitmap &bitmap, const D2D1_RECT_F *destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, const D2D1_RECT_F *sourceRectangle=nullptr, const D2D1_MATRIX_4X4_F *perspectiveTransform=nullptr) const
 
void DrawBitmap (ID2D1Bitmap *bitmap, const D2D1_RECT_F &destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, const D2D1_RECT_F *sourceRectangle=nullptr, const D2D1_MATRIX_4X4_F *perspectiveTransform=nullptr) const
 
void DrawBitmap (const Bitmap &bitmap, const D2D1_RECT_F &destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode=D2D1_INTERPOLATION_MODE_LINEAR, const D2D1_RECT_F *sourceRectangle=nullptr, const D2D1_MATRIX_4X4_F *perspectiveTransform=nullptr) const
 
void DrawBitmap (ID2D1Bitmap *bitmap, const D2D1_RECT_F &destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode, const D2D1_RECT_F &sourceRectangle, const D2D1_MATRIX_4X4_F *perspectiveTransform=nullptr) const
 
void DrawBitmap (const Bitmap &bitmap, const D2D1_RECT_F &destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode, const D2D1_RECT_F &sourceRectangle, const D2D1_MATRIX_4X4_F *perspectiveTransform=nullptr) const
 
void DrawBitmap (ID2D1Bitmap *bitmap, const D2D1_RECT_F &destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode, const D2D1_RECT_F &sourceRectangle, const D2D1_MATRIX_4X4_F &perspectiveTransform) const
 
void DrawBitmap (const Bitmap &bitmap, const D2D1_RECT_F &destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode, const D2D1_RECT_F &sourceRectangle, const D2D1_MATRIX_4X4_F &perspectiveTransform) const
 
void PushLayer (const D2D1_LAYER_PARAMETERS1 *layerParameters, ID2D1Layer *layer=nullptr) const
 Push a layer onto the clip and layer stack of the device context.
 
void PushLayer (const D2D1_LAYER_PARAMETERS1 *layerParameters, const Layer &layer) const
 
void PushLayer (const D2D1_LAYER_PARAMETERS1 &layerParameters, ID2D1Layer *layer=nullptr) const
 
void PushLayer (const D2D1_LAYER_PARAMETERS1 &layerParameters, const Layer &layer) const
 
void InvalidateEffectInputRectangle (ID2D1Effect *effect, UINT32 input, const D2D1_RECT_F *inputRectangle) const
 
void InvalidateEffectInputRectangle (ID2D1Effect *effect, UINT32 input, const D2D1_RECT_F &inputRectangle) const
 
void InvalidateEffectInputRectangle (const Effect &effect, UINT32 input, const D2D1_RECT_F *inputRectangle) const
 
void InvalidateEffectInputRectangle (const Effect &effect, UINT32 input, const D2D1_RECT_F &inputRectangle) const
 
void GetEffectInvalidRectangleCount (ID2D1Effect *effect, UINT32 *rectangleCount) const
 Gets the number of invalid output rectangles that have accumulated on the effect.
 
void GetEffectInvalidRectangleCount (const Effect &effect, UINT32 *rectangleCount) const
 
UINT32 GetEffectInvalidRectangleCount (ID2D1Effect *effect) const
 
UINT32 GetEffectInvalidRectangleCount (const Effect &effect) const
 
void GetEffectInvalidRectangles (ID2D1Effect *effect, D2D1_RECT_F *rectangles, UINT32 rectanglesCount) const
 Gets the invalid rectangles that have accumulated since the last time the effect was drawn and EndDraw was then called on the device context.
 
void GetEffectInvalidRectangles (const Effect &effect, D2D1_RECT_F *rectangles, UINT32 rectanglesCount) const
 
void GetEffectRequiredInputRectangles (ID2D1Effect *renderEffect, const D2D1_RECT_F *renderImageRectangle, const D2D1_EFFECT_INPUT_DESCRIPTION *inputDescriptions, D2D1_RECT_F *requiredInputRects, UINT32 inputCount) const
 Returns the input rectangles that are required to be supplied by the caller to produce the given output rectangle.
 
void GetEffectRequiredInputRectangles (const Effect &renderEffect, const D2D1_RECT_F *renderImageRectangle, const D2D1_EFFECT_INPUT_DESCRIPTION *inputDescriptions, D2D1_RECT_F *requiredInputRects, UINT32 inputCount) const
 
void FillOpacityMask (ID2D1Bitmap *opacityMask, ID2D1Brush *brush, const D2D1_RECT_F *destinationRectangle=nullptr, const D2D1_RECT_F *sourceRectangle=nullptr) const
 Fill using the alpha channel of the supplied opacity mask bitmap. The brush opacity will be modulated by the mask. The render target anti-aliasing mode must be set to aliased.
 
void FillOpacityMask (const Bitmap &opacityMask, const Brush &brush, const D2D1_RECT_F *destinationRectangle=nullptr, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
void FillOpacityMask (ID2D1Bitmap *opacityMask, ID2D1Brush *brush, const D2D1_RECT_F &destinationRectangle, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
void FillOpacityMask (const Bitmap &opacityMask, const Brush &brush, const D2D1_RECT_F &destinationRectangle, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
void FillOpacityMask (ID2D1Bitmap *opacityMask, ID2D1Brush *brush, const D2D1_RECT_F &destinationRectangle, const D2D1_RECT_F &sourceRectangle) const
 
void FillOpacityMask (const Bitmap &opacityMask, const Brush &brush, const D2D1_RECT_F &destinationRectangle, const D2D1_RECT_F &sourceRectangle) const
 
void CreateBitmap (D2D1_SIZE_U size, _In_opt_ CONST void *srcData, UINT32 pitch, _In_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 Creates a Direct2D bitmap from a pointer to in-memory source data.
 
Bitmap CreateBitmap (D2D1_SIZE_U size, const void *srcData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES *bitmapProperties) const
 
Bitmap CreateBitmap (D2D1_SIZE_U size, const void *srcData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
Bitmap CreateBitmap (D2D1_SIZE_U size, const D2D1_BITMAP_PROPERTIES *bitmapProperties) const
 
Bitmap CreateBitmap (D2D1_SIZE_U size, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
void CreateBitmapFromWicBitmap (_In_ IWICBitmapSource *wicBitmapSource, _In_opt_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 Creates an ID2D1Bitmap by copying the specified Microsoft Windows Imaging Component (WIC) bitmap.
 
HW_EXPORT void CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, _In_opt_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 
HW_EXPORT void CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, const D2D1_BITMAP_PROPERTIES &bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 
Bitmap CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, const D2D1_BITMAP_PROPERTIES *bitmapProperties=nullptr) const
 
HW_EXPORT Bitmap CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, const D2D1_BITMAP_PROPERTIES *bitmapProperties=nullptr) const
 
Bitmap CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
HW_EXPORT Bitmap CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
void CreateGradientStopCollection (_In_reads_(gradientStopsCount) CONST D2D1_GRADIENT_STOP *gradientStops, _In_range_(>=, 1) UINT32 gradientStopsCount, D2D1_GAMMA colorInterpolationGamma, D2D1_EXTEND_MODE extendMode, _COM_Outptr_ ID2D1GradientStopCollection **gradientStopCollection) const
 Creates an ID2D1GradientStopCollection from the specified array of D2D1_GRADIENT_STOP structures.
 
GradientStopCollection CreateGradientStopCollection (_In_reads_(gradientStopsCount) CONST D2D1_GRADIENT_STOP *gradientStops, _In_range_(>=, 1) UINT32 gradientStopsCount, D2D1_GAMMA colorInterpolationGamma=D2D1_GAMMA_2_2, D2D1_EXTEND_MODE extendMode=D2D1_EXTEND_MODE_CLAMP) const
 
void CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _COM_Outptr_ ID2D1BitmapBrush **bitmapBrush) const
 Creates an ID2D1BitmapBrush from the specified bitmap.
 
void CreateBitmapBrush (const Bitmap &bitmap, _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _COM_Outptr_ ID2D1BitmapBrush **bitmapBrush) const
 
BitmapBrush CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties=nullptr, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
BitmapBrush CreateBitmapBrush (const Bitmap &bitmap, _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties=nullptr, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
BitmapBrush CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
BitmapBrush CreateBitmapBrush (const Bitmap &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
BitmapBrush CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties) const
 
BitmapBrush CreateBitmapBrush (const Bitmap &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties) const
 
BitmapBrush CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
BitmapBrush CreateBitmapBrush (const Bitmap &bitmap, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
void DrawGlyphRun (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN *glyphRun, ID2D1Brush *foregroundBrush, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 Draws the specified glyphs.
 
void DrawGlyphRun (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN *glyphRun, const Brush &foregroundBrush, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 
void DrawBitmap (ID2D1Bitmap *bitmap, const D2D1_RECT_F *destinationRectangle, FLOAT opacity=1.0f, D2D1_BITMAP_INTERPOLATION_MODE interpolationMode=D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, const D2D1_RECT_F *sourceRectangle=nullptr) const
 Draws the specified bitmap after scaling it to the size of the specified rectangle.
 
void DrawBitmap (const Bitmap &bitmap, const D2D1_RECT_F *destinationRectangle, FLOAT opacity=1.0f, D2D1_BITMAP_INTERPOLATION_MODE interpolationMode=D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
void PushLayer (const D2D1_LAYER_PARAMETERS *layerParameters, ID2D1Layer *layer=nullptr) const
 Adds the specified layer to the render target so that it receives all subsequent drawing operations until PopLayer is called.
 
void PushLayer (const D2D1_LAYER_PARAMETERS &layerParameters, ID2D1Layer *layer=nullptr) const
 
void FillOpacityMask (ID2D1Bitmap *opacityMask, ID2D1Brush *brush, D2D1_OPACITY_MASK_CONTENT content=D2D1_OPACITY_MASK_CONTENT_GRAPHICS, const D2D1_RECT_F *destinationRectangle=nullptr, const D2D1_RECT_F *sourceRectangle=nullptr) const
 Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target.
 
void FillOpacityMask (const Bitmap &opacityMask, ID2D1Brush *brush, D2D1_OPACITY_MASK_CONTENT content=D2D1_OPACITY_MASK_CONTENT_GRAPHICS, const D2D1_RECT_F *destinationRectangle=nullptr, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
void FillOpacityMask (const Bitmap &opacityMask, const Brush &brush, D2D1_OPACITY_MASK_CONTENT content=D2D1_OPACITY_MASK_CONTENT_GRAPHICS, const D2D1_RECT_F *destinationRectangle=nullptr, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
- Public Member Functions inherited from Harlinn::Windows::Graphics::RenderTarget
void CreateBitmap (D2D1_SIZE_U size, _In_opt_ CONST void *srcData, UINT32 pitch, _In_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 Creates a Direct2D bitmap from a pointer to in-memory source data.
 
Bitmap CreateBitmap (D2D1_SIZE_U size, const void *srcData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES *bitmapProperties) const
 
Bitmap CreateBitmap (D2D1_SIZE_U size, const void *srcData, UINT32 pitch, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
Bitmap CreateBitmap (D2D1_SIZE_U size, const D2D1_BITMAP_PROPERTIES *bitmapProperties) const
 
Bitmap CreateBitmap (D2D1_SIZE_U size, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
void CreateBitmapFromWicBitmap (_In_ IWICBitmapSource *wicBitmapSource, _In_opt_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 Creates an ID2D1Bitmap by copying the specified Microsoft Windows Imaging Component (WIC) bitmap.
 
HW_EXPORT void CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, _In_opt_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 
HW_EXPORT void CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, const D2D1_BITMAP_PROPERTIES &bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 
Bitmap CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, const D2D1_BITMAP_PROPERTIES *bitmapProperties=nullptr) const
 
HW_EXPORT Bitmap CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, const D2D1_BITMAP_PROPERTIES *bitmapProperties=nullptr) const
 
Bitmap CreateBitmapFromWicBitmap (IWICBitmapSource *wicBitmapSource, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
HW_EXPORT Bitmap CreateBitmapFromWicBitmap (const Imaging::BitmapSource &wicBitmapSource, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
void CreateSharedBitmap (REFIID riid, _Inout_ void *data, _In_opt_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, _COM_Outptr_ ID2D1Bitmap **bitmap) const
 Creates an ID2D1Bitmap whose data is shared with another resource.
 
Bitmap CreateSharedBitmap (REFIID riid, void *data, const D2D1_BITMAP_PROPERTIES *bitmapProperties=nullptr) const
 
Bitmap CreateSharedBitmap (REFIID riid, void *data, const D2D1_BITMAP_PROPERTIES &bitmapProperties) const
 
void CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _COM_Outptr_ ID2D1BitmapBrush **bitmapBrush) const
 Creates an ID2D1BitmapBrush from the specified bitmap.
 
void CreateBitmapBrush (const Bitmap &bitmap, _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _COM_Outptr_ ID2D1BitmapBrush **bitmapBrush) const
 
BitmapBrush CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties=nullptr, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
BitmapBrush CreateBitmapBrush (const Bitmap &bitmap, _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties=nullptr, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
BitmapBrush CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
BitmapBrush CreateBitmapBrush (const Bitmap &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
BitmapBrush CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties) const
 
BitmapBrush CreateBitmapBrush (const Bitmap &bitmap, const D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties) const
 
BitmapBrush CreateBitmapBrush (_In_ ID2D1Bitmap *bitmap, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
BitmapBrush CreateBitmapBrush (const Bitmap &bitmap, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
void CreateSolidColorBrush (_In_ CONST D2D1_COLOR_F *color, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _COM_Outptr_ ID2D1SolidColorBrush **solidColorBrush) const
 Creates a new ID2D1SolidColorBrush that can be used to paint areas with a solid color.
 
void CreateSolidColorBrush (const D2D1_COLOR_F &color, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _COM_Outptr_ ID2D1SolidColorBrush **solidColorBrush) const
 
void CreateSolidColorBrush (_In_ CONST D2D1_COLOR_F *color, const D2D1_BRUSH_PROPERTIES &brushProperties, _COM_Outptr_ ID2D1SolidColorBrush **solidColorBrush) const
 
void CreateSolidColorBrush (const D2D1_COLOR_F &color, const D2D1_BRUSH_PROPERTIES &brushProperties, _COM_Outptr_ ID2D1SolidColorBrush **solidColorBrush) const
 
SolidColorBrush CreateSolidColorBrush (_In_ CONST D2D1_COLOR_F *color, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
SolidColorBrush CreateSolidColorBrush (_In_ CONST D2D1_COLOR_F *color, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
SolidColorBrush CreateSolidColorBrush (const D2D1_COLOR_F &color, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties=nullptr) const
 
SolidColorBrush CreateSolidColorBrush (const D2D1_COLOR_F &color, const D2D1_BRUSH_PROPERTIES &brushProperties) const
 
void CreateGradientStopCollection (_In_reads_(gradientStopsCount) CONST D2D1_GRADIENT_STOP *gradientStops, _In_range_(>=, 1) UINT32 gradientStopsCount, D2D1_GAMMA colorInterpolationGamma, D2D1_EXTEND_MODE extendMode, _COM_Outptr_ ID2D1GradientStopCollection **gradientStopCollection) const
 Creates an ID2D1GradientStopCollection from the specified array of D2D1_GRADIENT_STOP structures.
 
GradientStopCollection CreateGradientStopCollection (_In_reads_(gradientStopsCount) CONST D2D1_GRADIENT_STOP *gradientStops, _In_range_(>=, 1) UINT32 gradientStopsCount, D2D1_GAMMA colorInterpolationGamma=D2D1_GAMMA_2_2, D2D1_EXTEND_MODE extendMode=D2D1_EXTEND_MODE_CLAMP) const
 
void CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection, _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush) const
 Creates an ID2D1LinearGradientBrush object for painting areas with a linear gradient.
 
void CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection, _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush) const
 
void CreateLinearGradientBrush (const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection, _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush) const
 
void CreateLinearGradientBrush (const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES &brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection, _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush) const
 
void CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, const GradientStopCollection &gradientStopCollection, _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush) const
 
void CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, const GradientStopCollection &gradientStopCollection, _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush) const
 
void CreateLinearGradientBrush (const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, const GradientStopCollection &gradientStopCollection, _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush) const
 
void CreateLinearGradientBrush (const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES &brushProperties, const GradientStopCollection &gradientStopCollection, _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush) const
 
LinearGradientBrush CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, const GradientStopCollection &gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, const GradientStopCollection &gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, const GradientStopCollection &gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, const GradientStopCollection &gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, ID2D1GradientStopCollection *gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, const GradientStopCollection &gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (_In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, const GradientStopCollection &gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (const D2D1_POINT_2F &startPoint, const D2D1_POINT_2F &endPoint, ID2D1GradientStopCollection *gradientStopCollection) const
 
LinearGradientBrush CreateLinearGradientBrush (const D2D1_POINT_2F &startPoint, const D2D1_POINT_2F &endPoint, const GradientStopCollection &gradientStopCollection) const
 
void CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection, _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush) const
 Creates an ID2D1RadialGradientBrush object that can be used to paint areas with a radial gradient.
 
void CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection, _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush) const
 
void CreateRadialGradientBrush (const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection, _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush) const
 
void CreateRadialGradientBrush (const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES &brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection, _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush) const
 
void CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, const GradientStopCollection &gradientStopCollection, _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush) const
 
void CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, const GradientStopCollection &gradientStopCollection, _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush) const
 
void CreateRadialGradientBrush (const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, const GradientStopCollection &gradientStopCollection, _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush) const
 
void CreateRadialGradientBrush (const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES &brushProperties, const GradientStopCollection &gradientStopCollection, _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush) const
 
RadialGradientBrush CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, const GradientStopCollection &gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, const GradientStopCollection &gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, const GradientStopCollection &gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, const D2D1_BRUSH_PROPERTIES &brushProperties, const GradientStopCollection &gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, ID2D1GradientStopCollection *gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (_In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, const GradientStopCollection &gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (const D2D1_POINT_2F &center, const D2D1_POINT_2F &gradientOriginOffset, FLOAT radiusX, FLOAT radiusY, _In_ ID2D1GradientStopCollection *gradientStopCollection) const
 
RadialGradientBrush CreateRadialGradientBrush (const D2D1_POINT_2F &center, const D2D1_POINT_2F &gradientOriginOffset, FLOAT radiusX, FLOAT radiusY, const GradientStopCollection &gradientStopCollection) const
 
void CreateCompatibleRenderTarget (_In_opt_ CONST D2D1_SIZE_F *desiredSize, _In_opt_ CONST D2D1_SIZE_U *desiredPixelSize, _In_opt_ CONST D2D1_PIXEL_FORMAT *desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options, _COM_Outptr_ ID2D1BitmapRenderTarget **bitmapRenderTarget) const
 Creates a bitmap render target for use during intermediate off-screen drawing that is compatible with the current render target.
 
BitmapRenderTarget CreateCompatibleRenderTarget (_In_opt_ CONST D2D1_SIZE_F *desiredSize=nullptr, _In_opt_ CONST D2D1_SIZE_U *desiredPixelSize=nullptr, _In_opt_ CONST D2D1_PIXEL_FORMAT *desiredFormat=nullptr, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options=D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS::D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (_In_opt_ CONST D2D1_SIZE_F *desiredSize, _In_opt_ CONST D2D1_SIZE_U *desiredPixelSize, const D2D1_PIXEL_FORMAT &desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options=D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS::D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (_In_opt_ CONST D2D1_SIZE_F *desiredSize, const D2D1_SIZE_U &desiredPixelSize, _In_opt_ CONST D2D1_PIXEL_FORMAT *desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options=D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS::D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (const D2D1_SIZE_F &desiredSize, _In_opt_ CONST D2D1_SIZE_U *desiredPixelSize, _In_opt_ CONST D2D1_PIXEL_FORMAT *desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options=D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS::D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (_In_opt_ CONST D2D1_SIZE_F *desiredSize, const D2D1_SIZE_U &desiredPixelSize, const D2D1_PIXEL_FORMAT &desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options=D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS::D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (const D2D1_SIZE_F &desiredSize, _In_opt_ CONST D2D1_SIZE_U *desiredPixelSize, const D2D1_PIXEL_FORMAT &desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options=D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS::D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (const D2D1_SIZE_F &desiredSize, const D2D1_SIZE_U &desiredPixelSize, const D2D1_PIXEL_FORMAT &desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options=D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS::D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (const D2D1_SIZE_F &desiredSize, const D2D1_SIZE_U *desiredPixelSize) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (const D2D1_SIZE_F &desiredSize, const D2D1_SIZE_U &desiredPixelSize) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (const D2D1_SIZE_F &desiredSize, const D2D1_PIXEL_FORMAT *desiredFormat) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (const D2D1_SIZE_F &desiredSize, const D2D1_PIXEL_FORMAT &desiredFormat) const
 
BitmapRenderTarget CreateCompatibleRenderTarget (const D2D1_SIZE_F &desiredSize) const
 
void CreateLayer (const D2D1_SIZE_F *size, ID2D1Layer **layer) const
 Creates a layer resource that can be used with this render target and its compatible render targets.
 
Layer CreateLayer (const D2D1_SIZE_F *size=nullptr) const
 
Layer CreateLayer (const D2D1_SIZE_F &size) const
 
void CreateMesh (ID2D1Mesh **mesh) const
 Create a mesh that uses triangles to describe a shape.
 
Mesh CreateMesh () const
 
void DrawLine (const D2D1_POINT_2F &point0, const D2D1_POINT_2F &point1, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 Draws a line between the specified points using the specified stroke style.
 
void DrawLine (const D2D1_POINT_2F &point0, const D2D1_POINT_2F &point1, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawLine (const D2D1_POINT_2F &point0, const D2D1_POINT_2F &point1, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawLine (const D2D1_POINT_2F &point0, const D2D1_POINT_2F &point1, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void DrawRectangle (const D2D1_RECT_F *rect, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 Draws the outline of a rectangle that has the specified dimensions and stroke style.
 
void DrawRectangle (const D2D1_RECT_F &rect, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 
void DrawRectangle (const D2D1_RECT_F *rect, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawRectangle (const D2D1_RECT_F *rect, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawRectangle (const D2D1_RECT_F *rect, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void DrawRectangle (const D2D1_RECT_F &rect, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawRectangle (const D2D1_RECT_F &rect, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawRectangle (const D2D1_RECT_F &rect, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void FillRectangle (const D2D1_RECT_F *rect, ID2D1Brush *brush) const
 Paints the interior of the specified rectangle.
 
void FillRectangle (const D2D1_RECT_F &rect, ID2D1Brush *brush) const
 
void FillRectangle (const D2D1_RECT_F *rect, const Brush &brush) const
 
void FillRectangle (const D2D1_RECT_F &rect, const Brush &brush) const
 
void DrawRoundedRectangle (const D2D1_ROUNDED_RECT *roundedRect, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 Draws the outline of the specified rounded rectangle using the specified stroke style.
 
void DrawRoundedRectangle (const D2D1_ROUNDED_RECT &roundedRect, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 
void DrawRoundedRectangle (const D2D1_ROUNDED_RECT *roundedRect, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawRoundedRectangle (const D2D1_ROUNDED_RECT *roundedRect, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawRoundedRectangle (const D2D1_ROUNDED_RECT *roundedRect, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void DrawRoundedRectangle (const D2D1_ROUNDED_RECT &roundedRect, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawRoundedRectangle (const D2D1_ROUNDED_RECT &roundedRect, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawRoundedRectangle (const D2D1_ROUNDED_RECT &roundedRect, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void FillRoundedRectangle (const D2D1_ROUNDED_RECT *roundedRect, ID2D1Brush *brush) const
 Paints the interior of the specified rounded rectangle.
 
void FillRoundedRectangle (const D2D1_ROUNDED_RECT &roundedRect, ID2D1Brush *brush) const
 
void FillRoundedRectangle (const D2D1_ROUNDED_RECT *roundedRect, const Brush &brush) const
 
void FillRoundedRectangle (const D2D1_ROUNDED_RECT &roundedRect, const Brush &brush) const
 
void DrawEllipse (const D2D1_ELLIPSE *ellipse, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 Draws the outline of the specified ellipse using the specified stroke style.
 
void DrawEllipse (const D2D1_ELLIPSE &ellipse, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 
void DrawEllipse (const D2D1_ELLIPSE *ellipse, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawEllipse (const D2D1_ELLIPSE *ellipse, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawEllipse (const D2D1_ELLIPSE *ellipse, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void DrawEllipse (const D2D1_ELLIPSE &ellipse, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawEllipse (const D2D1_ELLIPSE &ellipse, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawEllipse (const D2D1_ELLIPSE &ellipse, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void FillEllipse (const D2D1_ELLIPSE *ellipse, ID2D1Brush *brush) const
 Paints the interior of the specified ellipse.
 
void FillEllipse (const D2D1_ELLIPSE &ellipse, ID2D1Brush *brush) const
 
void FillEllipse (const D2D1_ELLIPSE *ellipse, const Brush &brush) const
 
void FillEllipse (const D2D1_ELLIPSE &ellipse, const Brush &brush) const
 
void DrawGeometry (ID2D1Geometry *geometry, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 Draws the outline of the specified geometry using the specified stroke style.
 
void DrawGeometry (const Geometry &geometry, ID2D1Brush *brush, FLOAT strokeWidth=1.0f, ID2D1StrokeStyle *strokeStyle=nullptr) const
 
void DrawGeometry (ID2D1Geometry *geometry, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawGeometry (ID2D1Geometry *geometry, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawGeometry (ID2D1Geometry *geometry, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void DrawGeometry (const Geometry &geometry, ID2D1Brush *brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawGeometry (const Geometry &geometry, const Brush &brush, FLOAT strokeWidth, const StrokeStyle &strokeStyle) const
 
void DrawGeometry (const Geometry &geometry, const Brush &brush, FLOAT strokeWidth=1.0f) const
 
void FillGeometry (ID2D1Geometry *geometry, ID2D1Brush *brush, ID2D1Brush *opacityBrush=nullptr) const
 Paints the interior of the specified geometry.
 
void FillGeometry (ID2D1Geometry *geometry, ID2D1Brush *brush, const Brush &opacityBrush) const
 
void FillGeometry (ID2D1Geometry *geometry, const Brush &brush, const Brush &opacityBrush) const
 
void FillGeometry (ID2D1Geometry *geometry, const Brush &brush, ID2D1Brush *opacityBrush=nullptr) const
 
void FillGeometry (const Geometry &geometry, const Brush &brush, ID2D1Brush *opacityBrush=nullptr) const
 
void FillGeometry (const Geometry &geometry, const Brush &brush, const Brush &opacityBrush) const
 
void FillMesh (ID2D1Mesh *mesh, ID2D1Brush *brush) const
 Paints the interior of the specified mesh.
 
void FillMesh (ID2D1Mesh *mesh, const Brush &brush) const
 
void FillMesh (const Mesh &mesh, ID2D1Brush *brush) const
 
void FillMesh (const Mesh &mesh, const Brush &brush) const
 
void FillOpacityMask (ID2D1Bitmap *opacityMask, ID2D1Brush *brush, D2D1_OPACITY_MASK_CONTENT content=D2D1_OPACITY_MASK_CONTENT_GRAPHICS, const D2D1_RECT_F *destinationRectangle=nullptr, const D2D1_RECT_F *sourceRectangle=nullptr) const
 Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target.
 
void FillOpacityMask (const Bitmap &opacityMask, ID2D1Brush *brush, D2D1_OPACITY_MASK_CONTENT content=D2D1_OPACITY_MASK_CONTENT_GRAPHICS, const D2D1_RECT_F *destinationRectangle=nullptr, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
void FillOpacityMask (const Bitmap &opacityMask, const Brush &brush, D2D1_OPACITY_MASK_CONTENT content=D2D1_OPACITY_MASK_CONTENT_GRAPHICS, const D2D1_RECT_F *destinationRectangle=nullptr, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
void DrawBitmap (ID2D1Bitmap *bitmap, const D2D1_RECT_F *destinationRectangle, FLOAT opacity=1.0f, D2D1_BITMAP_INTERPOLATION_MODE interpolationMode=D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, const D2D1_RECT_F *sourceRectangle=nullptr) const
 Draws the specified bitmap after scaling it to the size of the specified rectangle.
 
void DrawBitmap (const Bitmap &bitmap, const D2D1_RECT_F *destinationRectangle, FLOAT opacity=1.0f, D2D1_BITMAP_INTERPOLATION_MODE interpolationMode=D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, const D2D1_RECT_F *sourceRectangle=nullptr) const
 
void DrawText (const WCHAR *string, UINT32 stringLength, IDWriteTextFormat *textFormat, const D2D1_RECT_F *layoutRect, ID2D1Brush *defaultForegroundBrush, D2D1_DRAW_TEXT_OPTIONS options=D2D1_DRAW_TEXT_OPTIONS_NONE, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 Draws the specified text using the format information provided by an IDWriteTextFormat object.
 
void DrawText (const WCHAR *string, UINT32 stringLength, const DirectWrite::TextFormat &textFormat, const D2D1_RECT_F *layoutRect, const Brush &defaultForegroundBrush, D2D1_DRAW_TEXT_OPTIONS options=D2D1_DRAW_TEXT_OPTIONS_NONE, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 
void DrawText (const WideString &text, IDWriteTextFormat *textFormat, const D2D1_RECT_F *layoutRect, ID2D1Brush *defaultForegroundBrush, D2D1_DRAW_TEXT_OPTIONS options=D2D1_DRAW_TEXT_OPTIONS_NONE, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 
void DrawText (const WideString &text, const DirectWrite::TextFormat &textFormat, const D2D1_RECT_F *layoutRect, const Brush &defaultForegroundBrush, D2D1_DRAW_TEXT_OPTIONS options=D2D1_DRAW_TEXT_OPTIONS_NONE, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 
void DrawTextLayout (const D2D1_POINT_2F &origin, IDWriteTextLayout *textLayout, ID2D1Brush *defaultForegroundBrush, D2D1_DRAW_TEXT_OPTIONS options=D2D1_DRAW_TEXT_OPTIONS_NONE) const
 Draws the formatted text described by the specified IDWriteTextLayout object.
 
void DrawTextLayout (const D2D1_POINT_2F &origin, const DirectWrite::TextLayout &textLayout, const Brush &defaultForegroundBrush, D2D1_DRAW_TEXT_OPTIONS options=D2D1_DRAW_TEXT_OPTIONS_NONE) const
 
void DrawGlyphRun (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN *glyphRun, ID2D1Brush *foregroundBrush, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 Draws the specified glyphs.
 
void DrawGlyphRun (const D2D1_POINT_2F &baselineOrigin, const DWRITE_GLYPH_RUN *glyphRun, const Brush &foregroundBrush, DWRITE_MEASURING_MODE measuringMode=DWRITE_MEASURING_MODE_NATURAL) const
 
void SetTransform (const D2D1_MATRIX_3X2_F *transform) const
 Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.
 
void SetTransform (const D2D1_MATRIX_3X2_F &transform) const
 
void GetTransform (D2D1_MATRIX_3X2_F *transform) const
 Gets the current transform of the render target.
 
void GetTransform (D2D1_MATRIX_3X2_F &transform) const
 
D2D1_MATRIX_3X2_F GetTransform () const
 
void SetAntialiasMode (D2D1_ANTIALIAS_MODE antialiasMode) const
 Sets the anti-aliasing mode of the render target. The anti-aliasing mode applies to all subsequent drawing operations, excluding text and glyph drawing operations.
 
D2D1_ANTIALIAS_MODE GetAntialiasMode () const
 Retrieves the current anti-aliasing mode for non-text drawing operations.
 
void SetTextAntialiasMode (D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode) const
 Specifies the anti-aliasing mode to use for subsequent text and glyph drawing operations.
 
D2D1_TEXT_ANTIALIAS_MODE GetTextAntialiasMode () const
 Gets the current anti-aliasing mode for text and glyph drawing operations.
 
void SetTextRenderingParams (IDWriteRenderingParams *textRenderingParams=nullptr) const
 Specifies text rendering options to be applied to all subsequent text and glyph drawing operations.
 
void SetTextRenderingParams (const DirectWrite::RenderingParams &textRenderingParams) const
 
void GetTextRenderingParams (IDWriteRenderingParams **textRenderingParams) const
 Retrieves the render target's current text rendering options.
 
DirectWrite::RenderingParams GetTextRenderingParams () const
 
void SetTags (D2D1_TAG tag1, D2D1_TAG tag2) const
 Specifies a label for subsequent drawing operations.
 
void GetTags (D2D1_TAG *tag1, D2D1_TAG *tag2) const
 Gets the label for subsequent drawing operations.
 
D2D1_TAG GetTag1 () const
 
D2D1_TAG GetTag2 () const
 
std::pair< D2D1_TAG, D2D1_TAG > GetTags () const
 
void PushLayer (const D2D1_LAYER_PARAMETERS *layerParameters, ID2D1Layer *layer=nullptr) const
 Adds the specified layer to the render target so that it receives all subsequent drawing operations until PopLayer is called.
 
void PushLayer (const D2D1_LAYER_PARAMETERS &layerParameters, ID2D1Layer *layer=nullptr) const
 
void PopLayer () const
 Stops redirecting drawing operations to the layer that is specified by the last PushLayer call.
 
void Flush (D2D1_TAG *tag1=nullptr, D2D1_TAG *tag2=nullptr) const
 Executes all pending drawing commands.
 
void SaveDrawingState (ID2D1DrawingStateBlock *drawingStateBlock) const
 Saves the current drawing state to the specified ID2D1DrawingStateBlock.
 
void SaveDrawingState (const DrawingStateBlock &drawingStateBlock) const
 
void RestoreDrawingState (ID2D1DrawingStateBlock *drawingStateBlock) const
 Sets the render target's drawing state to that of the specified ID2D1DrawingStateBlock.
 
void RestoreDrawingState (const DrawingStateBlock &drawingStateBlock) const
 
void PushAxisAlignedClip (const D2D1_RECT_F *clipRect, D2D1_ANTIALIAS_MODE antialiasMode=D2D1_ANTIALIAS_MODE_PER_PRIMITIVE) const
 Specifies a rectangle to which all subsequent drawing operations are clipped.
 
void PushAxisAlignedClip (const D2D1_RECT_F &clipRect, D2D1_ANTIALIAS_MODE antialiasMode=D2D1_ANTIALIAS_MODE_PER_PRIMITIVE) const
 
void PopAxisAlignedClip () const
 Removes the last axis-aligned clip from the render target. After this method is called, the clip is no longer applied to subsequent drawing operations.
 
void Clear (const D2D1_COLOR_F *clearColor=nullptr) const
 Clears the drawing area to the specified color.
 
void Clear (const D2D1_COLOR_F &clearColor) const
 
void BeginDraw () const
 Initiates drawing on this render target.
 
void EndDraw (D2D1_TAG *tag1=nullptr, D2D1_TAG *tag2=nullptr) const
 Ends drawing operations on the render target and indicates the current error state and associated tags.
 
D2D1_PIXEL_FORMAT GetPixelFormat () const
 Retrieves the pixel format and alpha mode of the render target.
 
void SetDpi (FLOAT dpiX, FLOAT dpiY) const
 Sets the dots per inch (DPI) of the render target.
 
void SetDpi (const D2D1_SIZE_F &dpi) const
 
void GetDpi (FLOAT *dpiX, FLOAT *dpiY) const
 Return the render target's dots per inch (DPI).
 
void GetDpi (FLOAT &dpiX, FLOAT &dpiY) const
 
D2D1_SIZE_F GetDpi () const
 
D2D1_SIZE_F GetSize () const
 Returns the size of the render target in device-independent pixels.
 
D2D1_SIZE_U GetPixelSize () const
 Returns the size of the render target in device pixels.
 
UINT32 GetMaximumBitmapSize () const
 Gets the maximum size, in device-dependent units (pixels), of any one bitmap dimension supported by the render target.
 
bool IsSupported (const D2D1_RENDER_TARGET_PROPERTIES *renderTargetProperties) const
 Indicates whether the render target supports the specified properties.
 
- Public Member Functions inherited from Harlinn::Windows::Graphics::Resource
template<typename T = Factory>
requires std::is_base_of_v< Factory, T>
T GetFactory ()
 
- Public Member Functions inherited from Harlinn::Common::Core::Unknown
constexpr Unknown () noexcept
 
 Unknown (IUnknown *unknown, bool addref=false) noexcept
 
 Unknown (REFIID iid, const Unknown &unknown, bool throwIfNoInterface=true)
 
 Unknown (const Unknown &other) noexcept
 
 Unknown (Unknown &&other) noexcept
 
 ~Unknown () noexcept
 
constexpr operator bool () const noexcept
 
Unknownoperator= (const Unknown &other) noexcept
 
Unknownoperator= (Unknown &&other) noexcept
 
void swap (Unknown &other) noexcept
 
void ResetPtr (IUnknown *other=nullptr, bool addRef=false) noexcept
 
Unknownoperator= (nullptr_t)
 
IUnknown * Detach ()
 
template<typename T >
requires std::is_base_of_v<Unknown, T >
T As () const
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
bool Is () const noexcept
 
template<typename T >
requires std::is_base_of_v<IUnknown, T>
ComPtr< TAs () const
 
template<typename T >
requires std::is_base_of_v<IUnknown, T>
bool Is () const noexcept
 This function can be used to detect if an object supports a particular COM interface derived from IUnknown.
 
template<typename T = IUnknown>
TGetInterfacePointer () const noexcept
 
bool QueryInterface (REFIID riid, void **itf) const
 Queries a COM object for a pointer to one of its interface; identifying the interface by a reference to its interface identifier (IID). If the COM object implements the interface, then it returns a pointer to that interface after calling IUnknown::AddRef on it.
 
template<typename T >
requires std::is_base_of_v<IUnknown, T>
bool QueryInterface (T **itf) const
 
constexpr bool operator== (const Unknown &other) const noexcept
 
constexpr bool operator!= (const Unknown &other) const noexcept
 
constexpr bool operator== (const IUnknown *other) const noexcept
 
constexpr bool operator!= (const IUnknown *other) const noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from Harlinn::Common::Core::Unknown
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromClassId (const CLSID &clsid, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromClassId (const wchar_t *clsid, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromClassId (const WideString &clsid, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromProgId (const wchar_t *progId, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromProgId (const WideString &progId, DWORD classContext=CLSCTX_INPROC_SERVER)
 
template<typename T >
requires std::is_base_of_v<Unknown, T>
static T CoCreateInstanceFromDll (const ModuleHandle &dll, const CLSID &clsid)
 
- Protected Attributes inherited from Harlinn::Common::Core::Unknown
IUnknown * unknown_
 

Detailed Description

Represents a set of state and command buffers that are used to render to a target.

The device context can render to a target bitmap or a command list.

Member Typedef Documentation

◆ Base

Member Function Documentation

◆ CreateBitmap() [1/22]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties ) const
inline

◆ CreateBitmap() [2/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmap() [3/22]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties ) const
inline

◆ CreateBitmap() [4/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmap() [5/22]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties ) const
inline

◆ CreateBitmap() [6/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmap() [7/22]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties ) const
inline

◆ CreateBitmap() [8/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmap() [9/22]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties ) const
inline

◆ CreateBitmap() [10/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap )
inline

◆ CreateBitmap() [11/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmap() [12/22]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties ) const
inline

◆ CreateBitmap() [13/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
const void * sourceData,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

Creates a bitmap that can be used as a target surface, for reading back to the CPU, or as a source for the DrawBitmap and BitmapBrush APIs. In addition, color context information can be passed to the bitmap.

Parameters
sizeThe pixel size of the bitmap to be created.
sourceDataThe initial data that will be loaded into the bitmap.
pitchThe pitch of the source data, if specified.
bitmapPropertiesThe properties of the bitmap to be created.
bitmapWhen this method returns, contains the address of a pointer to a new bitmap object.

The new bitmap can be used as a target for SetTarget if it is created with D2D1_BITMAP_OPTIONS_TARGET.

◆ CreateBitmap() [14/22]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties ) const
inline

◆ CreateBitmap() [15/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmap() [16/22]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties ) const
inline

◆ CreateBitmap() [17/22]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmap ( const D2D1_SIZE_U & size,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmap() [18/22]

void Harlinn::Windows::Graphics::RenderTarget::CreateBitmap ( D2D1_SIZE_U size,
_In_opt_ CONST void * srcData,
UINT32 pitch,
_In_ CONST D2D1_BITMAP_PROPERTIES * bitmapProperties,
_COM_Outptr_ ID2D1Bitmap ** bitmap ) const
inline

Creates a Direct2D bitmap from a pointer to in-memory source data.

Parameters
sizeThe dimensions of the bitmap to create in pixels.
srcDataA pointer to the memory location of the image data, or NULL to create an uninitialized bitmap.
pitchThe byte count of each scanline, which is equal to (the image width in pixels × the number of bytes per pixel) + memory padding. If srcData is NULL, this value is ignored. (Note that pitch is also sometimes called stride.)
bitmapPropertiesThe pixel format and dots per inch (DPI) of the bitmap to create.
bitmapWhen this method returns, contains a pointer to a pointer to the new bitmap. This parameter is passed uninitialized.

◆ CreateBitmap() [19/22]

Bitmap Harlinn::Windows::Graphics::RenderTarget::CreateBitmap ( D2D1_SIZE_U size,
const D2D1_BITMAP_PROPERTIES & bitmapProperties ) const
inline

◆ CreateBitmap() [20/22]

Bitmap Harlinn::Windows::Graphics::RenderTarget::CreateBitmap ( D2D1_SIZE_U size,
const D2D1_BITMAP_PROPERTIES * bitmapProperties ) const
inline

◆ CreateBitmap() [21/22]

Bitmap Harlinn::Windows::Graphics::RenderTarget::CreateBitmap ( D2D1_SIZE_U size,
const void * srcData,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES & bitmapProperties ) const
inline

◆ CreateBitmap() [22/22]

Bitmap Harlinn::Windows::Graphics::RenderTarget::CreateBitmap ( D2D1_SIZE_U size,
const void * srcData,
UINT32 pitch,
const D2D1_BITMAP_PROPERTIES * bitmapProperties ) const
inline

◆ CreateBitmapBrush() [1/26]

void Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( _In_ ID2D1Bitmap * bitmap,
_In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES * bitmapBrushProperties,
_In_opt_ CONST D2D1_BRUSH_PROPERTIES * brushProperties,
_COM_Outptr_ ID2D1BitmapBrush ** bitmapBrush ) const
inline

Creates an ID2D1BitmapBrush from the specified bitmap.

Parameters
bitmapThe bitmap contents of the new brush.
bitmapBrushProperties
brushProperties
bitmapBrush

◆ CreateBitmapBrush() [2/26]

BitmapBrush Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( _In_ ID2D1Bitmap * bitmap,
_In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES * bitmapBrushProperties = nullptr,
_In_opt_ CONST D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateBitmapBrush() [3/26]

BitmapBrush Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( _In_ ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES & bitmapBrushProperties ) const
inline

◆ CreateBitmapBrush() [4/26]

BitmapBrush Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( _In_ ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES & bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties ) const
inline

◆ CreateBitmapBrush() [5/26]

BitmapBrush Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( _In_ ID2D1Bitmap * bitmap,
const D2D1_BRUSH_PROPERTIES & brushProperties ) const
inline

◆ CreateBitmapBrush() [6/26]

void Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( const Bitmap & bitmap,
_In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES * bitmapBrushProperties,
_In_opt_ CONST D2D1_BRUSH_PROPERTIES * brushProperties,
_COM_Outptr_ ID2D1BitmapBrush ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [7/26]

BitmapBrush Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( const Bitmap & bitmap,
_In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES * bitmapBrushProperties = nullptr,
_In_opt_ CONST D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateBitmapBrush() [8/26]

BitmapBrush Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( const Bitmap & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES & bitmapBrushProperties ) const
inline

◆ CreateBitmapBrush() [9/26]

BitmapBrush Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( const Bitmap & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES & bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties ) const
inline

◆ CreateBitmapBrush() [10/26]

BitmapBrush Harlinn::Windows::Graphics::RenderTarget::CreateBitmapBrush ( const Bitmap & bitmap,
const D2D1_BRUSH_PROPERTIES & brushProperties ) const
inline

◆ CreateBitmapBrush() [11/26]

template<typename T >
requires std::is_base_of_v<Bitmap, T>
BitmapBrush1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( const T & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 & bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties ) const
inline

◆ CreateBitmapBrush() [12/26]

template<typename T >
requires std::is_base_of_v<Bitmap, T>
void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( const T & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 & bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [13/26]

template<typename T >
requires std::is_base_of_v<Bitmap, T>
BitmapBrush1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( const T & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 & bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateBitmapBrush() [14/26]

template<typename T >
requires std::is_base_of_v<Bitmap, T>
void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( const T & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 & bitmapBrushProperties,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [15/26]

template<typename T >
requires std::is_base_of_v<Bitmap,T>
void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( const T & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 * bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [16/26]

template<typename T >
requires std::is_base_of_v<Bitmap, T>
void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( const T & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 * bitmapBrushProperties,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [17/26]

template<typename T >
requires std::is_base_of_v<Bitmap, T>
BitmapBrush1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( const T & bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 * bitmapBrushProperties = nullptr,
const D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateBitmapBrush() [18/26]

template<typename T >
requires std::is_base_of_v<Bitmap, T>
void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( const T & bitmap,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [19/26]

BitmapBrush1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 & bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties ) const
inline

◆ CreateBitmapBrush() [20/26]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 & bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [21/26]

BitmapBrush1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 & bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateBitmapBrush() [22/26]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 & bitmapBrushProperties,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [23/26]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 * bitmapBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

Creates a bitmap brush, the input image is a Direct2D bitmap object.

Parameters
bitmapThe bitmap to use as the brush.
bitmapBrushPropertiesA bitmap brush properties structure.
brushPropertiesA brush properties structure.
bitmapBrushThe address of the newly created bitmap brush object.

◆ CreateBitmapBrush() [24/26]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 * bitmapBrushProperties,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapBrush() [25/26]

BitmapBrush1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( ID2D1Bitmap * bitmap,
const D2D1_BITMAP_BRUSH_PROPERTIES1 * bitmapBrushProperties = nullptr,
const D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateBitmapBrush() [26/26]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapBrush ( ID2D1Bitmap * bitmap,
ID2D1BitmapBrush1 ** bitmapBrush ) const
inline

◆ CreateBitmapFromDxgiSurface() [1/10]

template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( const T & surface,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties ) const
inline

◆ CreateBitmapFromDxgiSurface() [2/10]

template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( const T & surface,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmapFromDxgiSurface() [3/10]

template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( const T & surface,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmapFromDxgiSurface() [4/10]

template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( const T & surface,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties = nullptr ) const
inline

◆ CreateBitmapFromDxgiSurface() [5/10]

template<typename T >
requires std::is_base_of_v<DXGI::Surface, T>
void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( const T & surface,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmapFromDxgiSurface() [6/10]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( IDXGISurface * surface,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties ) const
inline

◆ CreateBitmapFromDxgiSurface() [7/10]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( IDXGISurface * surface,
const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmapFromDxgiSurface() [8/10]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( IDXGISurface * surface,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

Creates a bitmap from a DXGI surface that can be set as a target surface or have additional color context information specified.

Parameters
surface

The DXGI surface from which the bitmap can be created.

The DXGI surface must have been created from the same Direct3D device that the Direct2D device context is associated with.

Parameters
bitmapPropertiesThe bitmap properties specified in addition to the surface.
bitmapWhen this method returns, contains the address of a pointer to a new bitmap object.

◆ CreateBitmapFromDxgiSurface() [9/10]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( IDXGISurface * surface,
const D2D1_BITMAP_PROPERTIES1 * bitmapProperties = nullptr ) const
inline

◆ CreateBitmapFromDxgiSurface() [10/10]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromDxgiSurface ( IDXGISurface * surface,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmapFromWicBitmap() [1/17]

void Harlinn::Windows::Graphics::RenderTarget::CreateBitmapFromWicBitmap ( _In_ IWICBitmapSource * wicBitmapSource,
_In_opt_ CONST D2D1_BITMAP_PROPERTIES * bitmapProperties,
_COM_Outptr_ ID2D1Bitmap ** bitmap ) const
inline

Creates an ID2D1Bitmap by copying the specified Microsoft Windows Imaging Component (WIC) bitmap.

Parameters
wicBitmapSourceThe WIC bitmap to copy.
bitmapPropertiesThe pixel format and DPI of the bitmap to create. The pixel format must match the pixel format of wicBitmapSource, or the method will fail. To prevent a mismatch, you can pass NULL or pass the value obtained from calling the D2D1::PixelFormat helper function without specifying any parameter values. If both dpiX and dpiY are 0.0f, the default DPI, 96, is used. DPI information embedded in wicBitmapSource is ignored.
bitmapWhen this method returns, contains the address of a pointer to the new bitmap. This parameter is passed uninitialized.

◆ CreateBitmapFromWicBitmap() [2/17]

void Harlinn::Windows::Graphics::RenderTarget::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
_In_opt_ CONST D2D1_BITMAP_PROPERTIES * bitmapProperties,
_COM_Outptr_ ID2D1Bitmap ** bitmap ) const

◆ CreateBitmapFromWicBitmap() [3/17]

Bitmap Harlinn::Windows::Graphics::RenderTarget::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
const D2D1_BITMAP_PROPERTIES & bitmapProperties ) const

◆ CreateBitmapFromWicBitmap() [4/17]

void Harlinn::Windows::Graphics::RenderTarget::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
const D2D1_BITMAP_PROPERTIES & bitmapProperties,
_COM_Outptr_ ID2D1Bitmap ** bitmap ) const

◆ CreateBitmapFromWicBitmap() [5/17]

Bitmap Harlinn::Windows::Graphics::RenderTarget::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
const D2D1_BITMAP_PROPERTIES * bitmapProperties = nullptr ) const

◆ CreateBitmapFromWicBitmap() [6/17]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
D2D1_BITMAP_PROPERTIES1 & bitmapProperties ) const

◆ CreateBitmapFromWicBitmap() [7/17]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const

◆ CreateBitmapFromWicBitmap() [8/17]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
D2D1_BITMAP_PROPERTIES1 * bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const

◆ CreateBitmapFromWicBitmap() [9/17]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
D2D1_BITMAP_PROPERTIES1 * bitmapProperties = nullptr ) const

◆ CreateBitmapFromWicBitmap() [10/17]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( const Imaging::BitmapSource & wicBitmapSource,
ID2D1Bitmap1 ** bitmap ) const

◆ CreateBitmapFromWicBitmap() [11/17]

Bitmap Harlinn::Windows::Graphics::RenderTarget::CreateBitmapFromWicBitmap ( IWICBitmapSource * wicBitmapSource,
const D2D1_BITMAP_PROPERTIES & bitmapProperties ) const
inline

◆ CreateBitmapFromWicBitmap() [12/17]

Bitmap Harlinn::Windows::Graphics::RenderTarget::CreateBitmapFromWicBitmap ( IWICBitmapSource * wicBitmapSource,
const D2D1_BITMAP_PROPERTIES * bitmapProperties = nullptr ) const
inline

◆ CreateBitmapFromWicBitmap() [13/17]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( IWICBitmapSource * wicBitmapSource,
D2D1_BITMAP_PROPERTIES1 & bitmapProperties ) const
inline

◆ CreateBitmapFromWicBitmap() [14/17]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( IWICBitmapSource * wicBitmapSource,
D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateBitmapFromWicBitmap() [15/17]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( IWICBitmapSource * wicBitmapSource,
D2D1_BITMAP_PROPERTIES1 * bitmapProperties,
ID2D1Bitmap1 ** bitmap ) const
inline

Create a D2D bitmap by copying a WIC bitmap.

Parameters
wicBitmapSourceThe WIC bitmap source to copy from.
bitmapPropertiesA bitmap properties structure that specifies bitmap creation options.
bitmapThe address of the newly created bitmap object.

Starting with Windows 8.1, the bitmapProperties parameter is optional. When it is not specified, the created bitmap inherits the pixel format and alpha mode from wicBitmapSource.

When the bitmapProperties parameter is specified, the value in bitmapProperties->pixelFormat must either be DXGI_FORMAT_UNKNOWN or must match the WIC pixel format in wicBitmapSource.

When bitmapProperties->pixelFormat.alphaMode is set to D2D1_ALPHA_MODE_UNKNOWN, the newly created bitmap inherits the alpha mode from wicBitmapSource. When bitmapProperties->pixelFormat.alphaMode is set to D2D1_ALPHA_MODE_PREMULTIPLIED, D2D1_ALPHA_MODE_STRAIGHT, or D2D1_ALPHA_MODE_IGNORE, this forces the newly created bitmap to use the specified alpha mode.

◆ CreateBitmapFromWicBitmap() [16/17]

Bitmap1 Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( IWICBitmapSource * wicBitmapSource,
D2D1_BITMAP_PROPERTIES1 * bitmapProperties = nullptr ) const
inline

◆ CreateBitmapFromWicBitmap() [17/17]

void Harlinn::Windows::Graphics::DeviceContext::CreateBitmapFromWicBitmap ( IWICBitmapSource * wicBitmapSource,
ID2D1Bitmap1 ** bitmap ) const
inline

◆ CreateColorContext() [1/4]

void Harlinn::Windows::Graphics::DeviceContext::CreateColorContext ( D2D1_COLOR_SPACE space,
CONST BYTE * profile,
UINT32 profileSize,
ID2D1ColorContext ** colorContext ) const
inline

Creates a color context from a color space. If the space is Custom, the context is initialized from the profile/profileSize arguments. Otherwise the context is initialized with the profile bytes associated with the space and profile/profileSize are ignored.

Parameters
spaceThe space of color context to create.
profileA buffer containing the ICC profile bytes used to initialize the color context when space is D2D1_COLOR_SPACE_CUSTOM. For other types, the parameter is ignored and should be set to nullptr.
profileSizeThe size in bytes of profile.
colorContextWhen this method returns, contains the address of a pointer to a new color context object.

◆ CreateColorContext() [2/4]

void Harlinn::Windows::Graphics::DeviceContext::CreateColorContext ( D2D1_COLOR_SPACE space,
ID2D1ColorContext ** colorContext ) const
inline

◆ CreateColorContext() [3/4]

ColorContext Harlinn::Windows::Graphics::DeviceContext::CreateColorContext ( D2D1_COLOR_SPACE space = D2D1_COLOR_SPACE_SRGB,
CONST BYTE * profile = nullptr,
UINT32 profileSize = 0 ) const
inline

◆ CreateColorContext() [4/4]

void Harlinn::Windows::Graphics::DeviceContext::CreateColorContext ( ID2D1ColorContext ** colorContext) const
inline

◆ CreateColorContextFromFilename() [1/2]

ColorContext Harlinn::Windows::Graphics::DeviceContext::CreateColorContextFromFilename ( PCWSTR filename) const
inline

◆ CreateColorContextFromFilename() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::CreateColorContextFromFilename ( PCWSTR filename,
ID2D1ColorContext ** colorContext ) const
inline

Creates a color context by loading it from the specified filename. The profile bytes are the contents of the file specified by Filename.

Parameters
filenameThe path to the file containing the profile bytes to initialize the color context with.
colorContextWhen this method returns, contains the address of a pointer to a new color context.

◆ CreateColorContextFromWicColorContext() [1/4]

ColorContext Harlinn::Windows::Graphics::DeviceContext::CreateColorContextFromWicColorContext ( const Imaging::ColorContext & wicColorContext) const

◆ CreateColorContextFromWicColorContext() [2/4]

void Harlinn::Windows::Graphics::DeviceContext::CreateColorContextFromWicColorContext ( const Imaging::ColorContext & wicColorContext,
ID2D1ColorContext ** colorContext ) const

◆ CreateColorContextFromWicColorContext() [3/4]

ColorContext Harlinn::Windows::Graphics::DeviceContext::CreateColorContextFromWicColorContext ( IWICColorContext * wicColorContext) const
inline

◆ CreateColorContextFromWicColorContext() [4/4]

void Harlinn::Windows::Graphics::DeviceContext::CreateColorContextFromWicColorContext ( IWICColorContext * wicColorContext,
ID2D1ColorContext ** colorContext ) const
inline

Creates a color context from an IWICColorContext.

Parameters
wicColorContextThe IWICColorContext used to initialize the color context.
colorContextWhen this method returns, contains the address of a pointer to a new color context.

The new color context can be used in D2D1_BITMAP_PROPERTIES1 to initialize the color context of a created bitmap. The model field of the profile header is inspected to determine whether this profile is sRGB or scRGB and the color space is updated respectively. Otherwise the space is custom.

◆ CreateCommandList() [1/2]

CommandList Harlinn::Windows::Graphics::DeviceContext::CreateCommandList ( ) const
inline

◆ CreateCommandList() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::CreateCommandList ( ID2D1CommandList ** commandList) const
inline

Creates a new command list.

Parameters
commandListWhen this method returns, contains the address of a pointer to a command list.

A CommandList can store Direct2D commands to be displayed later through DeviceContext::DrawImage or through an image brush.

◆ CreateEffect() [1/2]

Effect Harlinn::Windows::Graphics::DeviceContext::CreateEffect ( REFCLSID effectId) const
inline

◆ CreateEffect() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::CreateEffect ( REFCLSID effectId,
ID2D1Effect ** effect ) const
inline

Create a new effect, the effect must either be built in or previously registered through ID2D1Factory1::RegisterEffectFromStream or ID2D1Factory1::RegisterEffectFromString.

◆ CreateGradientStopCollection() [1/4]

void Harlinn::Windows::Graphics::RenderTarget::CreateGradientStopCollection ( _In_reads_(gradientStopsCount) CONST D2D1_GRADIENT_STOP * gradientStops,
_In_range_(>=, 1) UINT32 gradientStopsCount,
D2D1_GAMMA colorInterpolationGamma,
D2D1_EXTEND_MODE extendMode,
_COM_Outptr_ ID2D1GradientStopCollection ** gradientStopCollection ) const
inline

Creates an ID2D1GradientStopCollection from the specified array of D2D1_GRADIENT_STOP structures.

Parameters
gradientStopsA pointer to an array of D2D1_GRADIENT_STOP structures.
gradientStopsCountA value greater than or equal to 1 that specifies the number of gradient stops in the gradientStops array.
colorInterpolationGammaThe space in which color interpolation between the gradient stops is performed.
extendModeThe behavior of the gradient outside the [0,1] normalized range.
gradientStopCollectionWhen this function returns, contains a pointer to a pointer to the new gradient stop collection.

◆ CreateGradientStopCollection() [2/4]

GradientStopCollection Harlinn::Windows::Graphics::RenderTarget::CreateGradientStopCollection ( _In_reads_(gradientStopsCount) CONST D2D1_GRADIENT_STOP * gradientStops,
_In_range_(>=, 1) UINT32 gradientStopsCount,
D2D1_GAMMA colorInterpolationGamma = D2D1_GAMMA_2_2,
D2D1_EXTEND_MODE extendMode = D2D1_EXTEND_MODE_CLAMP ) const
inline

◆ CreateGradientStopCollection() [3/4]

void Harlinn::Windows::Graphics::DeviceContext::CreateGradientStopCollection ( CONST D2D1_GRADIENT_STOP * straightAlphaGradientStops,
UINT32 straightAlphaGradientStopsCount,
D2D1_COLOR_SPACE preInterpolationSpace,
D2D1_COLOR_SPACE postInterpolationSpace,
D2D1_BUFFER_PRECISION bufferPrecision,
D2D1_EXTEND_MODE extendMode,
D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode,
ID2D1GradientStopCollection1 ** gradientStopCollection1 ) const
inline

A gradient stop collection represents a set of stops in an ideal unit length. This is the source resource for a linear gradient and radial gradient brush.

Parameters
preInterpolationSpaceSpecifies both the input color space and the space in which the color interpolation occurs.
postInterpolationSpaceSpecifies the color space colors will be converted to after interpolation occurs.
bufferPrecisionSpecifies the precision in which the gradient buffer will be held.
extendModeSpecifies how the gradient will be extended outside of the unit length.
colorInterpolationModeDetermines if colors will be interpolated in straight alpha or premultiplied alpha space.

◆ CreateGradientStopCollection() [4/4]

GradientStopCollection1 Harlinn::Windows::Graphics::DeviceContext::CreateGradientStopCollection ( CONST D2D1_GRADIENT_STOP * straightAlphaGradientStops,
UINT32 straightAlphaGradientStopsCount,
D2D1_COLOR_SPACE preInterpolationSpace = D2D1_COLOR_SPACE_SRGB,
D2D1_COLOR_SPACE postInterpolationSpace = D2D1_COLOR_SPACE_SRGB,
D2D1_BUFFER_PRECISION bufferPrecision = D2D1_BUFFER_PRECISION_8BPC_UNORM,
D2D1_EXTEND_MODE extendMode = D2D1_EXTEND_MODE_CLAMP,
D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode = D2D1_COLOR_INTERPOLATION_MODE_PREMULTIPLIED ) const
inline

◆ CreateImageBrush() [1/14]

ImageBrush Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( const Image & image,
const D2D1_IMAGE_BRUSH_PROPERTIES & imageBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties ) const
inline

◆ CreateImageBrush() [2/14]

void Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( const Image & image,
const D2D1_IMAGE_BRUSH_PROPERTIES & imageBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties,
ID2D1ImageBrush ** imageBrush ) const
inline

◆ CreateImageBrush() [3/14]

ImageBrush Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( const Image & image,
const D2D1_IMAGE_BRUSH_PROPERTIES & imageBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateImageBrush() [4/14]

void Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( const Image & image,
const D2D1_IMAGE_BRUSH_PROPERTIES & imageBrushProperties,
ID2D1ImageBrush ** imageBrush ) const
inline

◆ CreateImageBrush() [5/14]

void Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( const Image & image,
const D2D1_IMAGE_BRUSH_PROPERTIES * imageBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties,
ID2D1ImageBrush ** imageBrush ) const
inline

◆ CreateImageBrush() [6/14]

ImageBrush Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( const Image & image,
const D2D1_IMAGE_BRUSH_PROPERTIES * imageBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateImageBrush() [7/14]

void Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( const Image & image,
const D2D1_IMAGE_BRUSH_PROPERTIES * imageBrushProperties,
ID2D1ImageBrush ** imageBrush ) const
inline

◆ CreateImageBrush() [8/14]

ImageBrush Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( ID2D1Image * image,
const D2D1_IMAGE_BRUSH_PROPERTIES & imageBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties ) const
inline

◆ CreateImageBrush() [9/14]

void Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( ID2D1Image * image,
const D2D1_IMAGE_BRUSH_PROPERTIES & imageBrushProperties,
const D2D1_BRUSH_PROPERTIES & brushProperties,
ID2D1ImageBrush ** imageBrush ) const
inline

◆ CreateImageBrush() [10/14]

ImageBrush Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( ID2D1Image * image,
const D2D1_IMAGE_BRUSH_PROPERTIES & imageBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateImageBrush() [11/14]

void Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( ID2D1Image * image,
const D2D1_IMAGE_BRUSH_PROPERTIES & imageBrushProperties,
ID2D1ImageBrush ** imageBrush ) const
inline

◆ CreateImageBrush() [12/14]

void Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( ID2D1Image * image,
const D2D1_IMAGE_BRUSH_PROPERTIES * imageBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties,
ID2D1ImageBrush ** imageBrush ) const
inline

Creates an image brush. The input image can be any type of image, including a bitmap, effect, or a command list.

Parameters
imageThe image to be used as a source for the image brush.
imageBrushPropertiesThe properties specific to an image brush.
brushPropertiesProperties common to all brushes.
imageBrushWhen this method returns, contains the address of a pointer to the new ID2D1ImageBrush object.

◆ CreateImageBrush() [13/14]

ImageBrush Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( ID2D1Image * image,
const D2D1_IMAGE_BRUSH_PROPERTIES * imageBrushProperties,
const D2D1_BRUSH_PROPERTIES * brushProperties = nullptr ) const
inline

◆ CreateImageBrush() [14/14]

void Harlinn::Windows::Graphics::DeviceContext::CreateImageBrush ( ID2D1Image * image,
const D2D1_IMAGE_BRUSH_PROPERTIES * imageBrushProperties,
ID2D1ImageBrush ** imageBrush ) const
inline

◆ DrawBitmap() [1/10]

void Harlinn::Windows::Graphics::DeviceContext::DrawBitmap ( const Bitmap & bitmap,
const D2D1_RECT_F & destinationRectangle,
FLOAT opacity,
D2D1_INTERPOLATION_MODE interpolationMode,
const D2D1_RECT_F & sourceRectangle,
const D2D1_MATRIX_4X4_F & perspectiveTransform ) const
inline

◆ DrawBitmap() [2/10]

void Harlinn::Windows::Graphics::DeviceContext::DrawBitmap ( const Bitmap & bitmap,
const D2D1_RECT_F & destinationRectangle,
FLOAT opacity,
D2D1_INTERPOLATION_MODE interpolationMode,
const D2D1_RECT_F & sourceRectangle,
const D2D1_MATRIX_4X4_F * perspectiveTransform = nullptr ) const
inline

◆ DrawBitmap() [3/10]

void Harlinn::Windows::Graphics::DeviceContext::DrawBitmap ( const Bitmap & bitmap,
const D2D1_RECT_F & destinationRectangle,
FLOAT opacity,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
const D2D1_RECT_F * sourceRectangle = nullptr,
const D2D1_MATRIX_4X4_F * perspectiveTransform = nullptr ) const
inline

◆ DrawBitmap() [4/10]

void Harlinn::Windows::Graphics::DeviceContext::DrawBitmap ( const Bitmap & bitmap,
const D2D1_RECT_F * destinationRectangle,
FLOAT opacity,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
const D2D1_RECT_F * sourceRectangle = nullptr,
const D2D1_MATRIX_4X4_F * perspectiveTransform = nullptr ) const
inline

◆ DrawBitmap() [5/10]

void Harlinn::Windows::Graphics::RenderTarget::DrawBitmap ( const Bitmap & bitmap,
const D2D1_RECT_F * destinationRectangle,
FLOAT opacity = 1.0f,
D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

◆ DrawBitmap() [6/10]

void Harlinn::Windows::Graphics::DeviceContext::DrawBitmap ( ID2D1Bitmap * bitmap,
const D2D1_RECT_F & destinationRectangle,
FLOAT opacity,
D2D1_INTERPOLATION_MODE interpolationMode,
const D2D1_RECT_F & sourceRectangle,
const D2D1_MATRIX_4X4_F & perspectiveTransform ) const
inline

◆ DrawBitmap() [7/10]

void Harlinn::Windows::Graphics::DeviceContext::DrawBitmap ( ID2D1Bitmap * bitmap,
const D2D1_RECT_F & destinationRectangle,
FLOAT opacity,
D2D1_INTERPOLATION_MODE interpolationMode,
const D2D1_RECT_F & sourceRectangle,
const D2D1_MATRIX_4X4_F * perspectiveTransform = nullptr ) const
inline

◆ DrawBitmap() [8/10]

void Harlinn::Windows::Graphics::DeviceContext::DrawBitmap ( ID2D1Bitmap * bitmap,
const D2D1_RECT_F & destinationRectangle,
FLOAT opacity,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
const D2D1_RECT_F * sourceRectangle = nullptr,
const D2D1_MATRIX_4X4_F * perspectiveTransform = nullptr ) const
inline

◆ DrawBitmap() [9/10]

void Harlinn::Windows::Graphics::DeviceContext::DrawBitmap ( ID2D1Bitmap * bitmap,
const D2D1_RECT_F * destinationRectangle,
FLOAT opacity,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
const D2D1_RECT_F * sourceRectangle = nullptr,
const D2D1_MATRIX_4X4_F * perspectiveTransform = nullptr ) const
inline

Draws a bitmap to the render target.

Parameters
bitmapThe bitmap to draw.
destinationRectangleThe destination rectangle. The default is the size of the bitmap and the location is the upper left corner of the render target.
opacityThe opacity of the bitmap.
interpolationModeThe interpolation mode to use.
sourceRectangleAn optional source rectangle.
perspectiveTransformAn optional perspective transform.

The destinationRectangle parameter defines the rectangle in the target where the bitmap will appear (in device-independent pixels (DIPs)). This is affected by the currently set transform and the perspective transform, if set. If NULL is specified, then the destination rectangle is (left=0, top=0, right = width(sourceRectangle), bottom = height(sourceRectangle)).

The sourceRectangle parameter defines the sub-rectangle of the source bitmap (in DIPs). DrawBitmap will clip this rectangle to the size of the source bitmap, thus making it impossible to sample outside of the bitmap. If NULL is specified, then the source rectangle is taken to be the size of the source bitmap.

If you specify perspectiveTransform it is applied to the rect in addition to the transform set on the render target.

◆ DrawBitmap() [10/10]

void Harlinn::Windows::Graphics::RenderTarget::DrawBitmap ( ID2D1Bitmap * bitmap,
const D2D1_RECT_F * destinationRectangle,
FLOAT opacity = 1.0f,
D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

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

Parameters
bitmapThe bitmap to render.
destinationRectangleThe size and position, in device-independent pixels in the render target's coordinate space, of the area to which the bitmap is drawn. If the rectangle is not well-ordered, nothing is drawn, but the render target does not enter an error state.
opacityA value between 0.0f and 1.0f, inclusive, that specifies the opacity value to be applied to the bitmap; this value is multiplied against the alpha values of the bitmap's contents. Default is 1.0f.
interpolationModeThe interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is D2D1_BITMAP_INTERPOLATION_MODE_LINEAR.
sourceRectangleThe size and position, in device-independent pixels in the bitmap's coordinate space, of the area within the bitmap to draw; nullptr to draw the entire bitmap.

◆ DrawGdiMetafile() [1/4]

void Harlinn::Windows::Graphics::DeviceContext::DrawGdiMetafile ( const GdiMetafile & gdiMetafile,
const D2D1_POINT_2F & targetOffset ) const
inline

◆ DrawGdiMetafile() [2/4]

void Harlinn::Windows::Graphics::DeviceContext::DrawGdiMetafile ( const GdiMetafile & gdiMetafile,
const D2D1_POINT_2F * targetOffset = nullptr ) const
inline

◆ DrawGdiMetafile() [3/4]

void Harlinn::Windows::Graphics::DeviceContext::DrawGdiMetafile ( ID2D1GdiMetafile * gdiMetafile,
const D2D1_POINT_2F & targetOffset ) const
inline

◆ DrawGdiMetafile() [4/4]

void Harlinn::Windows::Graphics::DeviceContext::DrawGdiMetafile ( ID2D1GdiMetafile * gdiMetafile,
const D2D1_POINT_2F * targetOffset = nullptr ) const
inline

Draw a metafile to the device context.

Parameters
gdiMetafileThe metafile to draw.
targetOffsetThe offset from the upper left corner of the render target.

◆ DrawGlyphRun() [1/6]

void Harlinn::Windows::Graphics::DeviceContext::DrawGlyphRun ( const D2D1_POINT_2F & baselineOrigin,
const DWRITE_GLYPH_RUN & glyphRun,
const DWRITE_GLYPH_RUN_DESCRIPTION & glyphRunDescription,
const Brush & foregroundBrush,
DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL ) const
inline

◆ DrawGlyphRun() [2/6]

void Harlinn::Windows::Graphics::DeviceContext::DrawGlyphRun ( const D2D1_POINT_2F & baselineOrigin,
const DWRITE_GLYPH_RUN & glyphRun,
const DWRITE_GLYPH_RUN_DESCRIPTION & glyphRunDescription,
ID2D1Brush * foregroundBrush,
DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL ) const
inline

◆ DrawGlyphRun() [3/6]

void Harlinn::Windows::Graphics::RenderTarget::DrawGlyphRun ( const D2D1_POINT_2F & baselineOrigin,
const DWRITE_GLYPH_RUN * glyphRun,
const Brush & foregroundBrush,
DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL ) const
inline

◆ DrawGlyphRun() [4/6]

void Harlinn::Windows::Graphics::DeviceContext::DrawGlyphRun ( const D2D1_POINT_2F & baselineOrigin,
const DWRITE_GLYPH_RUN * glyphRun,
const DWRITE_GLYPH_RUN_DESCRIPTION * glyphRunDescription,
const Brush & foregroundBrush,
DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL ) const
inline

◆ DrawGlyphRun() [5/6]

void Harlinn::Windows::Graphics::DeviceContext::DrawGlyphRun ( const D2D1_POINT_2F & baselineOrigin,
const DWRITE_GLYPH_RUN * glyphRun,
const DWRITE_GLYPH_RUN_DESCRIPTION * glyphRunDescription,
ID2D1Brush * foregroundBrush,
DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL ) const
inline

Draws the glyph run with an extended description to describe the glyphs.

Parameters
baselineOriginOrigin of first glyph in the series.
glyphRunThe glyphs to render.
glyphRunDescriptionSupplementary glyph series information.
foregroundBrushThe brush that defines the text color.
measuringModeThe measuring mode of the glyph series, used to determine the advances and offsets. The default value is DWRITE_MEASURING_MODE_NATURAL.

The glyphRunDescription is ignored when rendering, but can be useful for printing and serialization of rendering commands, such as to an XPS or SVG file. This extends RenderTarget::DrawGlyphRun, which lacked the glyph run description.

◆ DrawGlyphRun() [6/6]

void Harlinn::Windows::Graphics::RenderTarget::DrawGlyphRun ( const D2D1_POINT_2F & baselineOrigin,
const DWRITE_GLYPH_RUN * glyphRun,
ID2D1Brush * foregroundBrush,
DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL ) const
inline

Draws the specified glyphs.

Parameters
baselineOriginThe origin, in device-independent pixels, of the glyphs' baseline.
glyphRunThe glyphs to render.
foregroundBrushThe brush used to paint the specified glyphs.
measuringModeA value that indicates how glyph metrics are used to measure text when it is formatted. The default value is DWRITE_MEASURING_MODE_NATURAL.

◆ DrawImage() [1/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( const Effect & effect,
const D2D1_POINT_2F & targetOffset,
const D2D1_RECT_F & imageRectangle,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [2/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( const Effect & effect,
const D2D1_POINT_2F & targetOffset,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [3/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( const Effect & effect,
const D2D1_POINT_2F * targetOffset = nullptr,
const D2D1_RECT_F * imageRectangle = nullptr,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [4/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( const Effect & effect,
D2D1_INTERPOLATION_MODE interpolationMode,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [5/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( const Image & image,
const D2D1_POINT_2F & targetOffset,
const D2D1_RECT_F & imageRectangle,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [6/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( const Image & image,
const D2D1_POINT_2F & targetOffset,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [7/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( const Image & image,
const D2D1_POINT_2F * targetOffset = nullptr,
const D2D1_RECT_F * imageRectangle = nullptr,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [8/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( const Image & image,
D2D1_INTERPOLATION_MODE interpolationMode,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER )
inline

◆ DrawImage() [9/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( ID2D1Effect * effect,
const D2D1_POINT_2F & targetOffset,
const D2D1_RECT_F & imageRectangle,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [10/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( ID2D1Effect * effect,
const D2D1_POINT_2F & targetOffset,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [11/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( ID2D1Effect * effect,
const D2D1_POINT_2F * targetOffset = nullptr,
const D2D1_RECT_F * imageRectangle = nullptr,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [12/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( ID2D1Effect * effect,
D2D1_INTERPOLATION_MODE interpolationMode,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [13/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( ID2D1Image * image,
const D2D1_POINT_2F & targetOffset,
const D2D1_RECT_F & imageRectangle,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [14/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( ID2D1Image * image,
const D2D1_POINT_2F & targetOffset,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

◆ DrawImage() [15/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( ID2D1Image * image,
const D2D1_POINT_2F * targetOffset = nullptr,
const D2D1_RECT_F * imageRectangle = nullptr,
D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER ) const
inline

Draw an image to the device context. The image represents either a concrete bitmap or the output of an effect graph.

Parameters
imageThe image to be drawn to the device context.
targetOffsetThe offset in the destination space that the image will be rendered to. The entire logical extent of the image will be rendered to the corresponding destination. If not specified, the destination origin will be (0, 0). The top-left corner of the image will be mapped to the target offset. This will not necessarily be the origin. This default value is nullptr.
imageRectangleThe corresponding rectangle in the image space will be mapped to the given origins when processing the image. This default value is NULL.
interpolationModeThe interpolation mode that will be used to scale the image if necessary.
compositeModeThe composite mode that will be applied to the limits of the currently selected clip. The default value is D2D1_COMPOSITE_MODE_SOURCE_OVER

◆ DrawImage() [16/16]

void Harlinn::Windows::Graphics::DeviceContext::DrawImage ( ID2D1Image * image,
D2D1_INTERPOLATION_MODE interpolationMode,
D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER )
inline

◆ FillOpacityMask() [1/9]

void Harlinn::Windows::Graphics::DeviceContext::FillOpacityMask ( const Bitmap & opacityMask,
const Brush & brush,
const D2D1_RECT_F & destinationRectangle,
const D2D1_RECT_F & sourceRectangle ) const
inline

◆ FillOpacityMask() [2/9]

void Harlinn::Windows::Graphics::DeviceContext::FillOpacityMask ( const Bitmap & opacityMask,
const Brush & brush,
const D2D1_RECT_F & destinationRectangle,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

◆ FillOpacityMask() [3/9]

void Harlinn::Windows::Graphics::DeviceContext::FillOpacityMask ( const Bitmap & opacityMask,
const Brush & brush,
const D2D1_RECT_F * destinationRectangle = nullptr,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

◆ FillOpacityMask() [4/9]

void Harlinn::Windows::Graphics::RenderTarget::FillOpacityMask ( const Bitmap & opacityMask,
const Brush & brush,
D2D1_OPACITY_MASK_CONTENT content = D2D1_OPACITY_MASK_CONTENT_GRAPHICS,
const D2D1_RECT_F * destinationRectangle = nullptr,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

◆ FillOpacityMask() [5/9]

void Harlinn::Windows::Graphics::RenderTarget::FillOpacityMask ( const Bitmap & opacityMask,
ID2D1Brush * brush,
D2D1_OPACITY_MASK_CONTENT content = D2D1_OPACITY_MASK_CONTENT_GRAPHICS,
const D2D1_RECT_F * destinationRectangle = nullptr,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

◆ FillOpacityMask() [6/9]

void Harlinn::Windows::Graphics::DeviceContext::FillOpacityMask ( ID2D1Bitmap * opacityMask,
ID2D1Brush * brush,
const D2D1_RECT_F & destinationRectangle,
const D2D1_RECT_F & sourceRectangle ) const
inline

◆ FillOpacityMask() [7/9]

void Harlinn::Windows::Graphics::DeviceContext::FillOpacityMask ( ID2D1Bitmap * opacityMask,
ID2D1Brush * brush,
const D2D1_RECT_F & destinationRectangle,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

◆ FillOpacityMask() [8/9]

void Harlinn::Windows::Graphics::DeviceContext::FillOpacityMask ( ID2D1Bitmap * opacityMask,
ID2D1Brush * brush,
const D2D1_RECT_F * destinationRectangle = nullptr,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

Fill using the alpha channel of the supplied opacity mask bitmap. The brush opacity will be modulated by the mask. The render target anti-aliasing mode must be set to aliased.

Parameters
opacityMaskThe bitmap that acts as the opacity mask
brushThe brush to use for filling the primitive.
destinationRectangleThe destination rectangle to output to in the render target
sourceRectangleThe source rectangle from the opacity mask bitmap.

◆ FillOpacityMask() [9/9]

void Harlinn::Windows::Graphics::RenderTarget::FillOpacityMask ( ID2D1Bitmap * opacityMask,
ID2D1Brush * brush,
D2D1_OPACITY_MASK_CONTENT content = D2D1_OPACITY_MASK_CONTENT_GRAPHICS,
const D2D1_RECT_F * destinationRectangle = nullptr,
const D2D1_RECT_F * sourceRectangle = nullptr ) const
inline

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

Parameters
opacityMaskThe opacity mask to apply to the brush. The alpha value of each pixel in the region specified by sourceRectangle is multiplied with the alpha value of the brush after the brush has been mapped to the area defined by destinationRectangle.
brushThe brush used to paint the region of the render target specified by destinationRectangle.
contentThe type of content the opacity mask contains. The value is used to determine the color space in which the opacity mask is blended.
destinationRectangleThe region of the render target to paint, in device-independent pixels, or NULL. If nullptr is specified, the brush paints a rectangle the same size as sourceRectangle, but positioned on the origin. If sourceRectangle isn't specified, the brush paints a rectangle the same size as the opacityMask bitmap and positioned on the origin.
sourceRectangle

◆ GetDevice() [1/2]

Device Harlinn::Windows::Graphics::DeviceContext::GetDevice ( ) const
inline

◆ GetDevice() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::GetDevice ( _Outptr_ ID2D1Device ** device) const
inline

Retrieves the device associated with this device context.

Parameters
deviceWhen this method returns, contains the address of a pointer to a Direct2D device associated with this device context.

The application can retrieve the device even if it is created from an earlier render target code-path. The application must use an ID2D1DeviceContext interface and then call GetDevice. Some functionality for controlling all of the resources for a set of device contexts is maintained only on an ID2D1Device object.

◆ GetEffectInvalidRectangleCount() [1/4]

UINT32 Harlinn::Windows::Graphics::DeviceContext::GetEffectInvalidRectangleCount ( const Effect & effect) const
inline

◆ GetEffectInvalidRectangleCount() [2/4]

void Harlinn::Windows::Graphics::DeviceContext::GetEffectInvalidRectangleCount ( const Effect & effect,
UINT32 * rectangleCount ) const
inline

◆ GetEffectInvalidRectangleCount() [3/4]

UINT32 Harlinn::Windows::Graphics::DeviceContext::GetEffectInvalidRectangleCount ( ID2D1Effect * effect) const
inline

◆ GetEffectInvalidRectangleCount() [4/4]

void Harlinn::Windows::Graphics::DeviceContext::GetEffectInvalidRectangleCount ( ID2D1Effect * effect,
UINT32 * rectangleCount ) const
inline

Gets the number of invalid output rectangles that have accumulated on the effect.

Parameters
effectThe effect to count the invalid rectangles on.
rectangleCountThe returned rectangle count.

◆ GetEffectInvalidRectangles() [1/2]

void Harlinn::Windows::Graphics::DeviceContext::GetEffectInvalidRectangles ( const Effect & effect,
D2D1_RECT_F * rectangles,
UINT32 rectanglesCount ) const
inline

◆ GetEffectInvalidRectangles() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::GetEffectInvalidRectangles ( ID2D1Effect * effect,
D2D1_RECT_F * rectangles,
UINT32 rectanglesCount ) const
inline

Gets the invalid rectangles that have accumulated since the last time the effect was drawn and EndDraw was then called on the device context.

Parameters
effectThe effect to get the invalid rectangles from.
rectanglesAn array of D2D1_RECT_F structures. You must allocate this to the correct size. You can get the count of the invalid rectangles using the GetEffectInvalidRectangleCount method.
rectanglesCountThe number of rectangles to get.

You can use the InvalidateEffectInputRectangle method to specify invalidated rectangles for Direct2D to propagate through an effect graph.

If multiple invalid rectangles are requested, the rectangles that this method returns may overlap. When this is the case, the rectangle count might be lower than the count that GetEffectInvalidRectangleCount.

Direct2D does not automatically use these invalid rectangles to reduce the region of an effect that is rendered.

◆ GetEffectRequiredInputRectangles() [1/2]

void Harlinn::Windows::Graphics::DeviceContext::GetEffectRequiredInputRectangles ( const Effect & renderEffect,
const D2D1_RECT_F * renderImageRectangle,
const D2D1_EFFECT_INPUT_DESCRIPTION * inputDescriptions,
D2D1_RECT_F * requiredInputRects,
UINT32 inputCount ) const
inline

◆ GetEffectRequiredInputRectangles() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::GetEffectRequiredInputRectangles ( ID2D1Effect * renderEffect,
const D2D1_RECT_F * renderImageRectangle,
const D2D1_EFFECT_INPUT_DESCRIPTION * inputDescriptions,
D2D1_RECT_F * requiredInputRects,
UINT32 inputCount ) const
inline

Returns the input rectangles that are required to be supplied by the caller to produce the given output rectangle.

Parameters
renderEffectThe effect whose output is being rendered.
renderImageRectangleThe portion of the output effect whose inputs are being inspected.
inputDescriptionsA list of the inputs whose rectangles are being queried.
requiredInputRectsThe input rectangles returned to the caller.
inputCountThe number of inputs.

The caller should be very careful not to place a reliance on the required input rectangles returned. Small changes for correctness to an effect's behavior can result in different rectangles being returned. In addition, different kinds of optimization applied inside the render can also influence the result.

◆ GetGlyphRunWorldBounds() [1/2]

void Harlinn::Windows::Graphics::DeviceContext::GetGlyphRunWorldBounds ( const D2D1_POINT_2F & baselineOrigin,
const DWRITE_GLYPH_RUN & glyphRun,
DWRITE_MEASURING_MODE measuringMode,
D2D1_RECT_F & bounds ) const
inline

◆ GetGlyphRunWorldBounds() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::GetGlyphRunWorldBounds ( const D2D1_POINT_2F & baselineOrigin,
const DWRITE_GLYPH_RUN * glyphRun,
DWRITE_MEASURING_MODE measuringMode,
D2D1_RECT_F * bounds ) const
inline

Gets the world-space bounds in DIPs of the glyph run using the device context DPI.

Parameters
baselineOriginThe origin of the baseline for the glyph run.
glyphRunThe glyph run to render.
measuringModeThe DirectWrite measuring mode that indicates how glyph metrics are used to measure text when it is formatted.
boundsThe bounds of the glyph run in DIPs and in world space.

The bounds reflect the current DPI, unit mode, and world transform of the context.

◆ GetImageLocalBounds() [1/4]

void Harlinn::Windows::Graphics::DeviceContext::GetImageLocalBounds ( const Image & image,
D2D1_RECT_F & localBounds ) const
inline

◆ GetImageLocalBounds() [2/4]

void Harlinn::Windows::Graphics::DeviceContext::GetImageLocalBounds ( const Image & image,
D2D1_RECT_F * localBounds ) const
inline

◆ GetImageLocalBounds() [3/4]

void Harlinn::Windows::Graphics::DeviceContext::GetImageLocalBounds ( ID2D1Image * image,
D2D1_RECT_F & localBounds ) const
inline

◆ GetImageLocalBounds() [4/4]

void Harlinn::Windows::Graphics::DeviceContext::GetImageLocalBounds ( ID2D1Image * image,
D2D1_RECT_F * localBounds ) const
inline

Gets the bounds of an image without the world transform of the context applied.

Parameters
imageThe image whose bounds will be calculated.
localBoundsWhen this method returns, contains a pointer to the bounds of the image in device independent pixels (DIPs) and in local space.

The image bounds don't include multiplication by the world transform. They do reflect the current DPI, unit mode, and interpolation mode of the context. To get the bounds that include the world transform, use DeviceContext::GetImageWorldBounds.

The returned bounds reflect which pixels would be impacted by calling DrawImage with a target offset of (0,0) and an identity world transform matrix. They do not reflect the current clip rectangle set on the device context or the extent of the context's current target image.

◆ GetImageWorldBounds() [1/4]

void Harlinn::Windows::Graphics::DeviceContext::GetImageWorldBounds ( const Image & image,
D2D1_RECT_F & worldBounds ) const
inline

◆ GetImageWorldBounds() [2/4]

void Harlinn::Windows::Graphics::DeviceContext::GetImageWorldBounds ( const Image & image,
D2D1_RECT_F * worldBounds ) const
inline

◆ GetImageWorldBounds() [3/4]

void Harlinn::Windows::Graphics::DeviceContext::GetImageWorldBounds ( ID2D1Image * image,
D2D1_RECT_F & worldBounds ) const
inline

◆ GetImageWorldBounds() [4/4]

void Harlinn::Windows::Graphics::DeviceContext::GetImageWorldBounds ( ID2D1Image * image,
D2D1_RECT_F * worldBounds ) const
inline

Gets the bounds of an image with the world transform of the context applied.

Parameters
imageThe image whose bounds will be calculated.
worldBoundsWhen this method returns, contains a pointer to the bounds of the image in device independent pixels (DIPs).

The image bounds reflect the current DPI, unit mode, and world transform of the context. To get bounds which don't include the world transform, use DeviceContext::GetImageLocalBounds.

The returned bounds reflect which pixels would be impacted by calling DrawImage with the same image and a target offset of (0,0). They do not reflect the current clip rectangle set on the device context or the extent of the context’s current target image.

◆ GetPrimitiveBlend()

D2D1_PRIMITIVE_BLEND Harlinn::Windows::Graphics::DeviceContext::GetPrimitiveBlend ( ) const
inline

Returns the primitive blend currently selected into the device context.

Returns
The current primitive blend. The default value is D2D1_PRIMITIVE_BLEND_SOURCE_OVER.

◆ GetRenderingControls() [1/2]

void Harlinn::Windows::Graphics::DeviceContext::GetRenderingControls ( D2D1_RENDERING_CONTROLS & renderingControls) const
inline

◆ GetRenderingControls() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::GetRenderingControls ( D2D1_RENDERING_CONTROLS * renderingControls) const
inline

Gets the rendering controls that have been applied to the context.

Parameters
renderingControlsWhen this method returns, contains a pointer to the rendering controls for this context.

◆ GetTarget() [1/2]

Image Harlinn::Windows::Graphics::DeviceContext::GetTarget ( ) const
inline

◆ GetTarget() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::GetTarget ( ID2D1Image ** image) const
inline

Gets the target currently associated with the device context.

Parameters
imageWhen this method returns, contains the address of a pointer to the target currently associated with the device context.

If a target is not associated with the device context, target will contain NULL when the methods returns.

If the currently selected target is a bitmap rather than a command list, the application can gain access to the initial bitmaps created by using one of the following methods:

  • CreateHwndRenderTarget
  • CreateDxgiSurfaceRenderTarget
  • CreateWicBitmapRenderTarget
  • CreateDCRenderTarget
  • CreateCompatibleRenderTarget

It is not possible for an application to destroy these bitmaps. All of these bitmaps are bindable as bitmap targets. However not all of these bitmaps can be used as bitmap sources for RenderTarget functions.

CreateDxgiSurfaceRenderTarget will create a bitmap that is usable as a bitmap source if the DXGI surface is bindable as a shader resource view.

CreateCompatibleRenderTarget will always create bitmaps that are usable as a bitmap source.

RenderTarget::BeginDraw will copy from the HDC to the original bitmap associated with it. RenderTarget::EndDraw will copy from the original bitmap to the HDC.

IWICBitmap objects will be locked in the following circumstances:

  • BeginDraw has been called and the currently selected target bitmap is a WIC bitmap.
  • A WIC bitmap is set as the target of a device context after BeginDraw has been called and before EndDraw has been called.
  • Any of the ID2D1Bitmap::Copy* methods are called with a WIC bitmap as either the source or destination.

IWICBitmap objects will be unlocked in the following circumstances:

  • EndDraw is called and the currently selected target bitmap is a WIC bitmap.
  • A WIC bitmap is removed as the target of a device context between the calls to BeginDraw and EndDraw.
  • Any of the ID2D1Bitmap::Copy* methods are called with a WIC bitmap as either the source or destination.

Direct2D will only lock bitmaps that are not currently locked.

Calling QueryInterface for GdiInteropRenderTarget will always succeed. GdiInteropRenderTarget::GetDC will return a device context corresponding to the currently bound target bitmap. GetDC will fail if the target bitmap was not created with the GDI_COMPATIBLE flag set.

ControlRenderTarget::Resize will throw a Harlinn::Common::Core::Exception for DXGI_ERROR_INVALID_CALL if there are any outstanding references to the original target bitmap associated with the render target.

Although the target can be a command list, it cannot be any other type of image. It cannot be the output image of an effect.

◆ GetUnitMode()

D2D1_UNIT_MODE Harlinn::Windows::Graphics::DeviceContext::GetUnitMode ( ) const
inline

Returns the unit mode currently set on the device context.

Returns
The unit mode.


◆ InvalidateEffectInputRectangle() [1/4]

void Harlinn::Windows::Graphics::DeviceContext::InvalidateEffectInputRectangle ( const Effect & effect,
UINT32 input,
const D2D1_RECT_F & inputRectangle ) const
inline

◆ InvalidateEffectInputRectangle() [2/4]

void Harlinn::Windows::Graphics::DeviceContext::InvalidateEffectInputRectangle ( const Effect & effect,
UINT32 input,
const D2D1_RECT_F * inputRectangle ) const
inline

◆ InvalidateEffectInputRectangle() [3/4]

void Harlinn::Windows::Graphics::DeviceContext::InvalidateEffectInputRectangle ( ID2D1Effect * effect,
UINT32 input,
const D2D1_RECT_F & inputRectangle ) const
inline

◆ InvalidateEffectInputRectangle() [4/4]

void Harlinn::Windows::Graphics::DeviceContext::InvalidateEffectInputRectangle ( ID2D1Effect * effect,
UINT32 input,
const D2D1_RECT_F * inputRectangle ) const
inline

This indicates that a portion of an effect's input is invalid. This method can be called many times.

You can use this method to propagate invalid rectangles through an effect graph. You can query Direct2D using the GetEffectInvalidRectangles method.

Direct2D does not automatically use these invalid rectangles to reduce the region of an effect that is rendered.

You can also use this method to invalidate caches that have accumulated while rendering effects that have the D2D1_PROPERTY_CACHED property set to true.

Parameters
effectThe effect to invalidate.
inputThe input index.
inputRectangleThe rect to invalidate.

◆ IsBufferPrecisionSupported()

bool Harlinn::Windows::Graphics::DeviceContext::IsBufferPrecisionSupported ( D2D1_BUFFER_PRECISION bufferPrecision) const
inline

Indicates whether the buffer precision is supported by D2D.

◆ IsDxgiFormatSupported()

bool Harlinn::Windows::Graphics::DeviceContext::IsDxgiFormatSupported ( DXGI_FORMAT format) const
inline

Indicates whether the format is supported by D2D.

◆ PushLayer() [1/6]

void Harlinn::Windows::Graphics::RenderTarget::PushLayer ( const D2D1_LAYER_PARAMETERS & layerParameters,
ID2D1Layer * layer = nullptr ) const
inline

◆ PushLayer() [2/6]

void Harlinn::Windows::Graphics::RenderTarget::PushLayer ( const D2D1_LAYER_PARAMETERS * layerParameters,
ID2D1Layer * layer = nullptr ) const
inline

Adds the specified layer to the render target so that it receives all subsequent drawing operations until PopLayer is called.

Parameters
layerParametersThe content bounds, geometric mask, opacity, opacity mask, and anti-aliasing options for the layer.
layer

The layer that receives subsequent drawing operations.

Starting with Windows 8, this parameter is optional. If a layer is not specified, Direct2D manages the layer resource automatically.

The PushLayer method allows a caller to begin redirecting rendering to a layer. All rendering operations are valid in a layer. The location of the layer is affected by the world transform set on the render target.

Each PushLayer must have a matching PopLayer call. If there are more PopLayer calls than PushLayer calls, the render target is placed into an error state. If Flush is called before all outstanding layers are popped, the render target is placed into an error state, and an error is returned. The error state can be cleared by a call to EndDraw.

A particular ID2D1Layer resource can be active only at one time. In other words, you cannot call a PushLayer method, and then immediately follow with another PushLayer method with the same layer resource. Instead, you must call the second PushLayer method with different layer resources.

◆ PushLayer() [3/6]

void Harlinn::Windows::Graphics::DeviceContext::PushLayer ( const D2D1_LAYER_PARAMETERS1 & layerParameters,
const Layer & layer ) const
inline

◆ PushLayer() [4/6]

void Harlinn::Windows::Graphics::DeviceContext::PushLayer ( const D2D1_LAYER_PARAMETERS1 & layerParameters,
ID2D1Layer * layer = nullptr ) const
inline

◆ PushLayer() [5/6]

void Harlinn::Windows::Graphics::DeviceContext::PushLayer ( const D2D1_LAYER_PARAMETERS1 * layerParameters,
const Layer & layer ) const
inline

◆ PushLayer() [6/6]

void Harlinn::Windows::Graphics::DeviceContext::PushLayer ( const D2D1_LAYER_PARAMETERS1 * layerParameters,
ID2D1Layer * layer = nullptr ) const
inline

Push a layer onto the clip and layer stack of the device context.

Parameters
layerParametersThe parameters that defines the layer.
layer

The layer resource to push on the device context that receives subsequent drawing operations.

If a layer is not specified, Direct2D manages the layer resource automatically.

◆ SetPrimitiveBlend()

void Harlinn::Windows::Graphics::DeviceContext::SetPrimitiveBlend ( D2D1_PRIMITIVE_BLEND primitiveBlend = D2D1_PRIMITIVE_BLEND_SOURCE_OVER) const
inline

Changes the primitive blending mode for all of the rendering operations.

Parameters
primitiveBlendThe primitive blend to use.

The primitive blend will apply to all of the primitive drawn on the context, unless this is overridden with the compositeMode parameter on the DrawImage API.

The primitive blend applies to the interior of any primitives drawn on the context. In the case of DrawImage, this will be implied by the image rectangle, offset and world transform.

If the primitive blend is anything other than D2D1_PRIMITIVE_BLEND_SOURCE_OVER then ClearType rendering will be turned off. If the application explicitly forces ClearType rendering in these modes, the drawing context will be placed in an error state. A Harlinn::Common::Core::Exception for D2DERR_WRONG_STATE will be thrown from either EndDraw or Flush.

◆ SetRenderingControls() [1/2]

void Harlinn::Windows::Graphics::DeviceContext::SetRenderingControls ( const D2D1_RENDERING_CONTROLS & renderingControls) const
inline

◆ SetRenderingControls() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::SetRenderingControls ( const D2D1_RENDERING_CONTROLS * renderingControls) const
inline

Sets tuning parameters for internal rendering inside the device context.

Parameters
renderingControlsThe rendering controls to be applied.

The rendering controls allow the application to tune the precision, performance, and resource usage of rendering operations.

◆ SetTarget() [1/2]

void Harlinn::Windows::Graphics::DeviceContext::SetTarget ( const Image & image) const
inline

◆ SetTarget() [2/2]

void Harlinn::Windows::Graphics::DeviceContext::SetTarget ( ID2D1Image * image) const
inline

The bitmap or command list to which the Direct2D device context will now render.

Parameters
imageThe surface or command list to which the Direct2D device context will render.

The target can be changed at any time, including while the context is drawing.

The target can be either a bitmap created with the D2D1_BITMAP_OPTIONS_TARGET flag, or it can be a command list. Other kinds of images cannot be set as a target. For example, you cannot set the output of an effect as target. If the target is not valid the context will enter the D2DERR_INVALID_TARGET error state.

You cannot use SetTarget to render to a bitmap/command list from multiple device contexts simultaneously. An image is considered “being rendered to” if it has ever been set on a device context within a BeginDraw/EndDraw timespan. If an attempt is made to render to an image through multiple device contexts, all subsequent device contexts after the first will enter an error state.

Callers wishing to attach an image to a second device context should first call EndDraw on the first device context.

Changing the target does not change the bitmap that an HWND render target presents from, nor does it change the bitmap that a DC render target blts to/from.

This API makes it easy for an application to use a bitmap as a source (like in DrawBitmap) and as a destination at the same time. Attempting to use a bitmap as a source on the same device context to which it is bound as a target will put the device context into the D2DERR_BITMAP_BOUND_AS_TARGET error state.

It is acceptable to have a bitmap bound as a target bitmap on multiple render targets at once. Applications that do this must properly synchronize rendering with Flush or EndDraw.

You can change the target at any time, including while the context is drawing.

You can set the target to NULL, in which case drawing calls will put the device context into an error state with D2DERR_WRONG_STATE. Calling SetTarget with a NULL target does not restore the original target bitmap to the device context.

If the device context has an outstanding HDC, the context will enter the D2DERR_WRONG_STATE error state. The target will not be changed.

If the bitmap and the device context are not in the same resource domain, the context will enter \ error state. The target will not be changed.

RenderTarget::GetPixelSize returns the size of the current target bitmap (or 0, 0) if there is no bitmap bound). ID2D1RenderTarget::GetSize returns the pixel size of the current bitmap scaled by the DPI of the render target. SetTarget does not affect the DPI of the render target.

RenderTarget::GetPixelFormat returns the pixel format of the current target bitmap (or DXGI_FORMAT_UNKNOWN, D2D1_ALPHA_MODE_UNKNOWN if there is none).

Bitmap::CopyFromRenderTarget copies from the currently bound target bitmap.

◆ SetUnitMode()

void Harlinn::Windows::Graphics::DeviceContext::SetUnitMode ( D2D1_UNIT_MODE unitMode) const
inline

Sets what units will be used to interpret values passed into the device context.

Parameters
unitModeA value from the enumeration defining how passed-in units will be interpreted by the device context.

This method will affect all properties and parameters affected by SetDpi and GetDpi. This affects all coordinates, lengths, and other properties that are not explicitly defined as being in another unit. For example:


The documentation for this class was generated from the following files: