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

New Post: New version will not open file

$
0
0
Here is what I have now based on this thread. https://magick.codeplex.com/discussions/528909

I'm still getting white backgrounds though.

        MagickReadSettings settings = new MagickReadSettings();
        settings.Format = MagickFormat.Eps;

        settings.ColorSpace = ColorSpace.RGB;
        settings.Density = new MagickGeometry(72, 72);

        using (MagickImage img = new MagickImage(fileName, settings))
        {
            //tried all of these
            img.BackgroundColor = Color.Transparent;
            img.Transparent(new MagickColor(Color.Transparent));
            img.Alpha(AlphaOption.Transparent);

            img.Format = MagickFormat.Png;
            byte[] bytes = img.ToByteArray();
            Stream s = new MemoryStream(bytes);
            s.Position = 0;
            return s;
        }

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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