M
M
maaGames2018-12-14 08:24:08
Windows
maaGames, 2018-12-14 08:24:08

How to store the result of Gdiplus::Bitmap::ApplyEffect?

You can apply various effects to a bitmap using Gdiplus::Bitmap::ApplyEffect. For example, blurring, color correction and more. But you can only apply one effect, the next overwrites the previous one. Those. the effect does not modify the bitmap, but is applied at the time of rendering. It is not possible to chain effects and there are performance issues, because the effect is applied at each rasterization, and not once.
Is it possible to somehow apply the result of the effect to a bitmap without creating a bitmap, connecting it as a context and drawing the original bitmap with the effect into it? For a single effect, this is still tolerable, but for a chain of effects, you have to make a chain of contexts - it looks somehow clumsy.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question