CorelDraw Plugin

You might find @jbmanning5’s discussion of his Photoshop actions useful. Possibly you could recreate the process in a CorelDraw plugin (does CorelDraw do rasters?).