# Image background for cell?

I'd like to make code Cells have a specific background image. I know you can do this for Notebooks, but what about Cells?

This simple test fails:

ConvertImageToFullyScaledNinePatch[img_] :=
Flatten[Outer[List, {0, #1}, {0, #2}] & @@

img = ConvertImageToFullyScaledNinePatch[
ExampleData[{"TestImage", "JellyBeans"}]];

CellPrint@Cell["test", "Code", BackgroundAppearance -> img]

• Without a link to the earlier Q&A ConvertImageToFullyScaledNinePatch is without context so I added a link. I hope you don't mind. – Mr.Wizard May 20 '16 at 17:41
• Ah, I meant to include that, thanks! – M.R. May 20 '16 at 17:42

Probably not ideal, but using OverlayBox (undocumented) can get you something:

img = ConvertImageToFullyScaledNinePatch[

• Since it is not editable anyway you can use documented Overlay. – Kuba May 20 '16 at 18:36