1. An image forming apparatus comprising: a first discrimination unit configured to discriminate whether or not image data of an object to be subjected to transformation processing is stored in a storage unit; and a first acquisition unit configured to generate image data on which halftone processing taking into account transformation has been executed and store the generated image data in the storage unit in a case where the first discrimination unit has discriminated that image data of the object to be subjected to transformation processing is not stored in the storage unit, and acquire image data stored in the storage unit in a case where the first discrimination unit has discriminated that image data of the object to be subjected to transformation processing is stored in the storage unit.