Set background and opaque flag.