The StylePainter object represents a tool for painting style patterns on a specified graphics medium. The graphics medium can be either device-independent image (DIB) or Window metafile (EMF). The object is created by the GDBEngine::CreateStylePainter method.