C# How do you create and use a spot color

Hi all

I'm able to create CMYK colors by the following code

Color colorName = application.CreateCMYKColor(093950);

But I need to create a spot color with a specific name to use as an cutline for our cutter. The color is not important, but I need to give it a specific name "cut"
I see the application.CreateSpotColor method, but I cant figure out how to use it.

Any suggestions?

Thanks

Parents
  • I ended up with creating the palette in CorelDRAW first and then using the "CreateSpotColorByName" method to get the color.

    Color cutColor = application.CreateSpotColorByName("cutsliss""cut");
    

    cutsliss is the palettename and cut is the colorname

    But using this approach the palette and color must already be defined on the machine, I would prefer to be able to define it in the program.

Reply Children
No Data