السلام عليكم
أعمل على برنامج يتم فيه طباعة الفورم استخدمت الكود التالي لكن الطباعة تكون متبكسلة شوي ومو واضحة
هل فيه كود معين أقدر أضيفه وتكون الطباعة بجودة عالية
شكرا لكم مقدما وانا مبتدئة جدا بالبرمجة
private void CaptureScreen()
{
Graphics myGraphics = this.CreateGraphics();
Size s = this.Size;
memoryImage = new Bitmap(s.Width, s.Height, myGraphics);
Graphics memoryGraphics = Graphics.FromImage(memoryImage);
memoryGraphics.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, s);
}
private void button1_Click(object sender, EventArgs e)
{
CaptureScreen();
printDocument1.Print();
}
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.DrawImage(memoryImage, 0, 0);
}