Various graphical patterns (including .pat files from CorelDraw) can be typically created from both bitmap and vector sources and later applied to a new graphics file to fill out some elements with such a pattern.
Generally speaking, many graphics programs can create their own pattern through a dedicated function, which is usually found as some kind of pattern library. This function essentially allows jpeg to pat conversion or similar.