We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got it working if you are interested:
#include "stdafx.h" #include "Effect.h" #include "d2d1effects.h" #include "d2d1_1.h"; HANDLE CreateEffect(HANDLE ctx, REFCLSID effect) { RetrieveContext(ctx); ID2D1HwndRenderTarget* renderTarget = (ID2D1HwndRenderTarget*) context->renderTarget; ID2D1Effect* compositeEffect; ID2D1DeviceContext* deviceContext; HRESULT hr; hr = renderTarget->QueryInterface(&deviceContext); hr = deviceContext->CreateEffect(effect, &compositeEffect); return (HANDLE)compositeEffect; } void SetInput(HANDLE d2dEffect, INT index, HANDLE d2dbitmap, BOOL invalidate) { ID2D1Effect* effect = reinterpret_cast<ID2D1Effect*>(d2dEffect); ID2D1Bitmap* bitmap = reinterpret_cast<ID2D1Bitmap*>(d2dbitmap); effect->SetInput(index, bitmap, invalidate); }
The text was updated successfully, but these errors were encountered:
@kennetherland Thanks so much! It would be great if you could consider making a PR for this.
#60
Sorry, something went wrong.
I'm facing a problem where I need an effect to use D2D1_BLEND_MODE_MULTIPLY. @kennetherland I know it's been 3 years, but do you still have the code?
D2D1_BLEND_MODE_MULTIPLY
No branches or pull requests
Got it working if you are interested:
The text was updated successfully, but these errors were encountered: