Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to set an Image as the Background of a Panel? I've studied all the options in the Documentation center, but didn't find anything about it.


Background Image

  Panel[Style["This is Infratab", 
                Editable -> False
      Background -> image, Alignment -> Center, ImageSize -> {400, 400}
  ](*panel is closed*)

Instead of a color, I want to set image as background of the Panel.

share|improve this question

You could try theOverlay command:

image = ImageResize[ExampleData[{"TestImage", "Tiffany"}], 300];
 {ImageAdjust[image, {0, 0.5}], 
   Plot[Sin[x], {x, 0, 10},
    PlotStyle -> {Thick, Red}, 
    ImageSize -> ImageDimensions[image]],
   Alignment -> Center,
   ImageSize -> ImageDimensions[image]

enter image description here

share|improve this answer
,sorry your code is also not working.I evaluated your code in my system. – subbu Nov 28 '12 at 15:40
try restarting Mathematica? – cormullion Nov 28 '12 at 15:53
Already I tried ,still not working. – subbu Nov 28 '12 at 18:20
works for me, MacOS X Mountain Lion, Mathematica 8.0.1. Sorry, can't help. – cormullion Nov 28 '12 at 19:58
@subbu What is your mma version? Is it a previous one than 8? Overlay is introduced in version 8. – Silvia Dec 1 '12 at 10:52

Something like this:

image = ExampleData[{"TestImage", "Man"}];
  Rasterize[Style["This is Infratab", Bold, 20, Yellow], 
   Background -> None]],
 Alignment -> Center, ImageSize -> {400, 400}]

enter image description here

share|improve this answer
,you are specifying image as data with in panel,but I want to set image as Background to the Panel. – subbu Nov 28 '12 at 11:44
@ subbu - That isn't possible. Background is just for colours. – Chris Degnen Nov 28 '12 at 11:50
,that was I Know,just I am trying is it possible or not? – subbu Nov 28 '12 at 12:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.