A non-transitory computer readable recording medium recording therein a program code to implement a color registration method of an image forming apparatus, wherein the color registration method comprises:
- printing a preset test pattern for color registration;
- scanning the printed test pattern for color registration;
- detecting the printed test pattern for color registration from a scan image obtained as a result of the scanning;
- calculating location error values of respective colors, using the detected test pattern for color registration;
- and
- performing the color registration using the calculated location error values of respective colors.