Synecdoche and metonymy are two different types of metaphor. Whilst the former is a type of metaphor in which a part stands for the whole (e.g workers being reduced to 'hands' in Dickens's Hard Times), the latter is a type of metaphor where the chosen image is closely related to, but not actually part of, the subject (e.g The Crown standing for The Monarchy or the White House standing for The President).