79373530

Date: 2025-01-21 07:41:26
Score: 0.5
Natty:
Report link

When drawing the bitmap, scale it to fit the print area.

Dim scaleX As Single = e.PageBounds.Width / formBitmap.Width
Dim scaleY As Single = e.PageBounds.Height / formBitmap.Height
Dim scale As Single = Math.Min(scaleX, scaleY)
e.Graphics.DrawImage(formBitmap, 0, 0, formBitmap.Width * scale, formBitmap.Height * scale)
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Jiachen Li-MSFT