Magick.NET icon indicating copy to clipboard operation
Magick.NET copied to clipboard

CMYK to MagickColor Always returns white

Open sam-masscreations opened this issue 1 year ago • 0 comments

Magick.NET version

13.6.0

Environment (Operating system, version and so on)

Magick.NET-Q16-AnyCPU

Description

Trying to set True black for CMYK, the colour is always returning white event though properties are set. image

Steps to Reproduce

var textImage = new MagickImage("xc:none", 1701, 2386);
textImage.ColorSpace = ColorSpace.CMYK;
var thisColor = new MagickColor(75, 68, 67, 90, 65535);
// Define draw settings for text
var drawables = new Drawables()
    // Set font properties
    .Font("fonts/aAntiCorona.ttf", FontStyleType.Normal, FontWeight.Normal, FontStretch.Normal)
    .FontPointSize(25)
    .FillColor(thisColor)
    .TextAlignment(textAlignment)
    // Specify the location and text to draw
    .Text(location.X, location.Y, text)
    // Set text gravity
    .Gravity(gravity);

// Draw the text on the image
drawables.Draw(textImage);

sam-masscreations avatar Feb 19 '24 18:02 sam-masscreations