473,799 Members | 3,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing Panel which is comes out to be very light print. Dont have much sharpness

1 New Member
Below is my code. Not sure how to make the print brighter.
Expand|Select|Wrap|Line Numbers
  1. MemoryImage = new Bitmap(Panel_Invoice.Width, Panel_Invoice.Height, System.Drawing.Imaging.PixelFormat.Format32bppPArgb);
  2.  
  3.                 Rectangle rect = new Rectangle(0, 0, Panel_Invoice.Width, Panel_Invoice.Height);
  4.                 Panel_Invoice.DrawToBitmap(MemoryImage, new Rectangle(0, 0, Panel_Invoice.Width, Panel_Invoice.Height));
  5.                 MemoryImage.SetResolution(MemoryImage.HorizontalResolution, MemoryImage.VerticalResolution);
  6.                 MemoryImage.SetPixel(0, 0, System.Drawing.Color.FromArgb(0, 0, 0));
  7.  
  8.                 e.Graphics.DrawImage(MemoryImage, 0, 0);
  9.  
  10.                 e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
  11.                 e.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
  12.                 e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
  13.                 e.Graphics.CompositingMode = CompositingMode.SourceOver;
  14.                 e.Graphics.CompositingQuality = CompositingQuality.HighQuality;
  15.                 base.OnPaint(e);
May 3 '12 #1
0 1067

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1442
by: Simonne De Ryck | last post by:
Hello, I'm using VB6 with CR9. My CR is filled up with data I build up from VB6 in an access-2000-table. I made a form with a CR9-viewer on it. When I run my vb-application, The form is shown with, at first, no data but after a few clicks on the refresh-button, the data appears. Seems to be somewhere a delay ! Anybody an idea how comes ? Thanks
4
9368
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And this differences increases with the increase number of labels. The code is as follwods: Here rdr = OleDbDataReader Font is Times New Roman, 12pt
1
15711
by: EggHead | last post by:
Hi all, I have a form that has a panel. Inside the panel is a bunch of objects - picturebox, panel and so on. I want to be able to print what is in the panel to a printer. I can not use the capture screen routine because some of the objects are not visible. They are placed beyond the panel wide or height. Basically, I don't know how to print the panel. Thanks Egghead
3
3761
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to print the current contents of the browser without bringing up the print dialog. At first I thought it was a simple matter to have the button's "onclick" attribute set to "window.print();". However, that always brings up the print dialog box. ...
1
2400
by: Sandy | last post by:
Dear Pythonic People, I recently discovered SciTE (1.68) as a programming editor, and I find it just beautiful. Small, fast, elegant and beautiful. I particularly like syntax highlighting features -- not simply different colours, but styles and fonts too. I don't know whether this is the right place to ask this type of question, but...
0
1160
by: pk2007 | last post by:
Hi everybody, Here we've got a small program smthing like an image viewer. We have used javax.print for printing. When we zoom out to a scale smaller than an A4 media, it prints out the zoomed image properly.When we zoom in and have our picture bigger than the paper size, a scale to fit occures. What is up? Which attributes should be taken care of? Waiting for reply....
1
1504
by: itsenthil | last post by:
Hi....... I want to print mywebpage in buttonclick control without showing printdialogbox..(i.e withuot user intraction)...the page is submitted directely to the printer .....any way to do this one.....plz help me.....
1
2620
by: anmcafresher | last post by:
Hi Guys, I am working with an option where I do want to print a background image without enabling the "Print Background Color and Image" in the IE. I do want to get this image printed on each page that i get printed through Printer like a footer.
0
5324
by: Andrew Meador | last post by:
I have implemented a printing scenario where an html file is printed using the the following code: public void PrintHtmlFile(string url) { RegistryKey IERegKey; string header = null; string footer = null; object o = null; InternetExplorerClass ie = null;
16
4527
by: raylopez99 | last post by:
I am running out of printing paper trying to debug this...it has to be trivial, but I cannot figure it out--can you? Why am I not printing text, but just the initial string "howdy"? On the screen, when I open a file, the entire contents of the file is in fact being shown...so why can't I print it later? All of this code I am getting from a book (Chris Sells) and the net. The solution is to be found in the fact that stringbuilder is...
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10237
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9077
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5588
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.