alexpana / wxWidgets

Read-only mirror of the wxWidgets SVN repo (automatically updated). Report issues here: http://trac.wxwidgets.org/
http://www.wxwidgets.org/
3 stars 0 forks source link

Drawing blended images #12

Open alexpana opened 10 years ago

alexpana commented 10 years ago

While implementing wxD2DContext::DrawBitmap I realized there was blending involved, so I made a quick search through the MSDN and found that the only way of drawing blended images was with a DeviceContext [1], and a D2D1_COMPOSITE_MODE enum [2]. Unfortunately, the minimum requirements for these are "Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]".

I couldn't find another way to use composition / blending.

[1] http://msdn.microsoft.com/en-us/library/windows/desktop/hh780339%28v=vs.85%29.aspx [2] http://msdn.microsoft.com/en-us/library/windows/desktop/hh446995%28v=vs.85%29.aspx

csomor commented 10 years ago

that's ok, you don't have to emulate these, we just have to clearly document this, one small addition - please return true for wxCOMPOSITION _DEST since this is always supported.