Skip to content

Render to low res black and white #924

Answered by H1Gdev
arsu-leo asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure what effect you expect, but I paste the code I tested.

            var d = new Bitmap(1446, 532);
            {
                using (var s = new Bitmap(320, 1280))
                {
                    using (var g = SvgRenderer.FromImage(s))
                    {
                        ((IGraphicsProvider)g).GetGraphics().TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
                        ((IGraphicsProvider)g).GetGraphics().CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighSpeed;
                        svgDoc.Draw(g);
                    }
                    using (var g = Graphics.FromImage(d))
                    {

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arsu-leo
Comment options

Answer selected by arsu-leo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants