ID2D1DeviceContext2::CreateTransformedImageSource method (d2d1_3.h)

Creates an image source which shares resources with an original.

Syntax

HRESULT CreateTransformedImageSource(
  ID2D1ImageSource                               *imageSource,
  const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES *properties,
  ID2D1TransformedImageSource                    **transformedImageSource
);

Parameters

imageSource

Type: ID2D1ImageSource*

The original image.

properties

Type: const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES*

Properties for the source image.

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

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

See also

ID2D1DeviceContext2