Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Convert rgb byte array to cymk byte array

$
0
0
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
 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.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>