app.CreateCMYKColor(c, m, y, k)
Builds a CMYK color object. Prefer this for anything that goes to press.
Signature
app.CreateCMYKColor(c, m, y, k)
Notes
Builds a CMYK color object. Prefer this for anything that goes to press.
Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
shape = app.ActiveSelectionRange(1)
# a common press blue: C=100 M=70 Y=0 K=0
cmyk = app.CreateCMYKColor(100, 70, 0, 0)
shape.Fill.ApplyUniformFill(cmyk)
print("Filled with CMYK(100,70,0,0)")
About this section: Application
Application — the CorelDRAW application object.
- This section has 13 entries; this is one of them.
- See the full section index: Application
Other entries in this section
- app.DocumentsCollection of every open document. The i-th one is app.Documents.Item(
- app.ActiveDocumentThe document in front. Returns None when nothing is open, so wrap it i
- app.CreateDocument()Creates a blank document and returns it.
- app.OpenDocument(path)Opens a .cdr or template file from disk and returns the Document.
- app.ActiveSelectionRange(n)The n-th shape in the current selection, as a single Shape. Use it to
- app.ActiveSelectionRangeWith no argument it returns the whole selection as a ShapeRange. Itera
- app.ActiveShapeThe first shape in the selection. Same as ActiveSelectionRange(1).
- app.ActivePageThe active page. Shorthand for ActiveDocument.ActivePage.