1. An image processing apparatus comprising: a designating unit adapted to designate, as an image processing function to be applied to an image of interest, any of a plurality of image processing functions including a copy function for copying the image of interest and a transmitting function for transmitting the image of interest based on a user's operation; a reading unit adapted to read a code image in which setup information for the plurality of image processing functions is included; a determination unit adapted to determine whether or not the setup information included in the code image read by the reading unit contains setup information corresponding to the image processing function designated by the designating unit; and a processing unit adapted to process, when the determination unit determines that the setup information included in the code image read by the reading unit contains setup information corresponding to the image processing function designated by the designating unit, the image of interest by the image processing function designated by the designating unit using the setup information corresponding to the image processing function designated by the designating unit, and to process, when the determination unit determines that the setup information included in the code image read by the reading unit does not contain setup information corresponding to the image processing function designated by the designating unit, the image of interest by the image processing function designated by the designating unit using default setup information corresponding to the image processing function designated by the designating unit.