1. A method of controlling example-based edge-aware directional texture painting by a computing device, the method comprising: receiving one or more inputs by the computing device to paint a target mask in a user interface that defines a set of pixels to be synthesized, the one or more inputs defining a target direction field and a plurality of edges as part of a target shape mask; and synthesizing a texture from a source image by the computing device to be applied to the set of pixels of the target mask using: a source shape mask that defines a plurality of edges taken from the source image such that the synthesized texture applied to the plurality of edges of the target shape mask correspond to respective ones of the plurality of edges of the source shape mask; and a source direction field taken from the source image such that the synthesized texture applied to the target direction field corresponds to the source direction field; and painting the set of pixels in the user interface by the computing device using the synthesized texture.