6
$\begingroup$

Possible Duplicate:
What is the most effective way to setup a Notebook with transparent background but solid contents?

When MMA 8 starts, a floating image of spikey is shown. As you can see the image has no rectangular border and the contents of the screen outside the spikey body are visible. We could say that the spikey image has a transparent background.

How do we achieve this effect in MMA?

This is my attempt:

(* Display splash screen for t seconds*) DisplaySplash[ t_] := (splashnb = CreateWindow[DocumentNotebook[{Graphics[Disk[]] }], ShowCellBracket -> False, Deployed -> True, ShowGroupOpener -> False, WindowSize -> All, WindowMovable -> False, WindowElements -> {}, WindowFrame -> "Frameless", WindowFrameElements -> None, Background -> None, WindowTitle -> None]; Pause[t]; NotebookClose[splashnb];) (* Display splash screen for t seconds*) DisplaySplash[5]; 

As you see, even if the window has Background-> None, a white rectangular background surrounds the black disk and covers the underlying screen contents. Changing the window opacity, changes also the disk opacity, so it is not an option.

Can you suggest a solution?

$\endgroup$
5
  • $\begingroup$ WindowFrameElements->None is not fully docuemted, but is apparently the only way to have a really invisible window (except for the white background) $\endgroup$ Commented May 16, 2012 at 10:35
  • $\begingroup$ I can't find it at the moment, but there was a similar question on StackOverflow, and I think it turned out that the background on certain types of windows (depending on the window frame) can be set to transparent on OS X but not on Windows. I might be remembering wrong though, don't take my word for it. $\endgroup$ Commented May 16, 2012 at 10:50
  • $\begingroup$ WindowOpacity affects all elements of a window, not just its content area. $\endgroup$ Commented May 16, 2012 at 11:12
  • 1
    $\begingroup$ I think this is the SO question Szabolcs is referring to. $\endgroup$ Commented May 16, 2012 at 11:17
  • $\begingroup$ @kguler yes these two questions are very similar $\endgroup$ Commented May 16, 2012 at 18:28

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.