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_] :=
Module[{paddedImage = ImagePad[img, 1, Black]},
ReplaceImageValue[paddedImage,
Flatten[Outer[List, {0, #1}, {0, #2}] & @@
ImageDimensions[paddedImage], 1] -> White]];
img = ConvertImageToFullyScaledNinePatch[
ExampleData[{"TestImage", "JellyBeans"}]];
CellPrint@Cell["test", "Code", BackgroundAppearance -> img]

ConvertImageToFullyScaledNinePatchis without context so I added a link. I hope you don't mind. – Mr.Wizard May 20 '16 at 17:41