У меня есть ошибка error LNK2001: unresolved external symbol _CLSID_D2D1HueRotation
Я не могу понять, почему я получаю эту ошибку.Ошибка в 4-й строке кода CLSID_D2D1HueRotation
.Это код ...
float width = 350;
float height = 100;
Microsoft::WRL::ComPtr<ID2D1Effect> hueRotationEffect;
context2->CreateEffect(CLSID_D2D1HueRotation, &hueRotationEffect);
hueRotationEffect->SetInput(0, tetronimoBitmap.Get());
hueRotationEffect->SetValue(D2D1_HUEROTATION_PROP_ANGLE, 270.0f);
rectImage = { width,height, width + tetronimoBitmap->GetSize().width, height + tetronimoBitmap->GetSize().height };
//context2->CreateBitmapBrush(tetronimoBitmap.Get(), tetronimoBitmapBrush.ReleaseAndGetAddressOf());
context2->DrawImage(hueRotationEffect.Get());
//context2->FillRectangle(rectImage, tetronimoBitmapBrush.Get());
//context2->DrawBitmap(tetronimoBitmap.Get(), &rectImage, 1.0f, D2D1_INTERPOLATION_MODE_LINEAR, NULL);
if (FAILED(context2->EndDraw())) {
context2->EndDraw();
}