seekingalpha
seekingalpha

Reputation: 105

C#: Drawing method used by Picturebox

Background: In a Picturebox, Bitmap images can be drawn on screen by assigning a Bitmap object to Picturebox's Image property.

Question: What's the drawing method (GDI+?) used by Picturebox to paint bitmap image on screen?

Thanks in advance.

Upvotes: 1

Views: 290

Answers (1)

Tergiver
Tergiver

Reputation: 14517

If by PictureBox you mean System.Windows.Forms.PictureBox, it paints with GDI+ as GDI+ is the rendering technology used by all of Windows Forms (WinForms). The GDI+ "wrapper" for WinForms comes from System.Drawing.

Windows Presentation Foundation (WPF) on the other hand, uses DirectX to "paint". WPF does not have a PictureBox control.

Upvotes: 2

Related Questions