アプリを開いたときに(デスクトップの)背景をぼかす必要があります。どうすればいいですか?ヒントやリンクを教えてください..
質問する
200 次
2 に答える
2
- Take a screenshot.
- Apply some blurring to the screenshot bitmap (e.g. Gaussian).
- Display a fullscreen window with processed screenshot as content.
- Show your window on top of the fullscreen window.
The details depend on the OS and the technology you are working with.
If dimming instead of blurring is OK, you can just show a black fullscreen rectangle with alpha less than one (as suggested in the answer by Seçkin).
Though I must add that as a user I would resent an application doing that to me. Unless it's a nuclear missile launch control application (or something with similarly drastic consequences of a user mistake), I'll just uninstall it.
于 2012-09-04T10:04:36.047 に答える
1
私があなたなら、この効果を実現するために画面全体に広がる半透明の長方形を作成します。ぼやけたメガネの後ろで見るのと似ています。世界はぼやけていません。メガネだけでぼやけて認識されます。
于 2012-09-04T09:44:33.990 に答える