I've coded a device that prints small labels. Here is my problem: -
Every printed text on the label looks fine with pictures < Code> e.Graphics.DrawImage (...) looks bad The DPI has been set to 300 (maximum printers). I found that image from a coral draw in vector / SVG format - if I print the coral draw file then it feels great! How can I print similar to SVG files or C # (.NET 3.5 or 4.0)? Greetings / div> I have used before and this is very Works well. This project is outdated, so it may require a small touch before being compiled in your Net 3.5 / 4.0 project. Once you have compiled it, you can try the following snippet It should generate a bitmap object that you can use to encode for your printing requirements. e.Graphics.DrawString (...) -
// create a window Output Bitmap SVG Window Window = New SVGWindow (width, height) that matches the desired; Window.Src = svgSource; // Create a GDI renderer for SVG, and use white background GdiRenderer gdirender = new GdiRenderer (window, color white); Bitmap bitmap = gdirender.Render ();
Comments
Post a Comment