ID2D1DeviceContext2::CreateTransformedImageSource method (d2d1_3.h)

Creates an image source which shares resources with an original.

Syntax

HRESULT CreateTransformedImageSource(
  [in]  ID2D1ImageSource                               *imageSource,
  [in]  const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES *properties,
  [out] ID2D1TransformedImageSource                    **transformedImageSource
);

Parameters

[in] imageSource

Type: ID2D1ImageSource*

The original image.

[in] properties

Type: const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES*

Properties for the source image.

[out] transformedImageSource

Type: ID2D1TransformedImageSource**

Receives the new image source.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header d2d1_3.h
Library D2D1.lib
DLL D2D1.dll

See also

ID2D1DeviceContext2