Hello, New to magick.NET and hoping to utilize it to convert a rgb pdf to a cymk pdf.
What I need Magick.NET for is to convert a rgb byte array into a cymk byte array
Any guidance?
Here is my code so far
What I need Magick.NET for is to convert a rgb byte array into a cymk byte array
Any guidance?
Here is my code so far
Protected Shared Function TEST(ByVal imageArray As Byte(), ByVal rec As Rectangle) As Byte()
Dim settings As New MagickReadSettings()
settings.Width = rec.Width
settings.Height = rec.Height
settings.ColorSpace = ColorSpace.CMYK
' Read image from file
Using image As New MagickImage(imageArray, settings)
image.Format = MagickFormat.Cmyk
' Create byte array that contains a jpeg file
Dim data As Byte() = image.ToByteArray()
Return data
End Using
End Function
Any help is appreciated.