共用方式為


CD2DLinearGradientBrush::Attach

Attaches existing resource interface to the object

void Attach(
   ID2D1LinearGradientBrush* pResource
);

Parameters

  • pResource
    Existing resource interface. Cannot be NULL

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DLinearGradientBrush Class