ID2D1DeviceContext2::CreateTransformedImageSource method

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

imageSource [in]

Type: ID2D1ImageSource*

The original image.

properties [in]

Type: const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES*

Properties for the source image.

transformedImageSource [out]

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

Header

D2d1_3.h

Library

D2D1.lib

DLL

D2D1.dll

See also

ID2D1DeviceContext2

 

 

Show: