【问题标题】:C#: Drawing method used by PictureboxC#:Picturebox使用的绘图方法
【发布时间】:2012-07-15 13:37:06
【问题描述】:

背景:在 Picturebox 中,通过将 Bitmap 对象分配给 Picturebox 的 Image 属性,可以在屏幕上绘制位图图像。

问题:Picturebox在屏幕上绘制位图图像的绘制方法(GDI+?)是什么?

提前致谢。

【问题讨论】:

    标签: c# picturebox


    【解决方案1】:

    如果PictureBox 是指System.Windows.Forms.PictureBox,它使用 GDI+ 进行绘制,因为 GDI+ 是所有 Windows 窗体 (WinForms) 使用的呈现技术。 WinForms 的 GDI+“包装器”来自System.Drawing

    另一方面,Windows Presentation Foundation (WPF) 使用 DirectX 来“绘制”。 WPF 没有 PictureBox 控件。

    【讨论】:

    • 谢谢!这正是我想知道的:)。
    猜你喜欢
    • 2012-05-10
    • 2023-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-17
    • 2012-11-15
    • 1970-01-01
    相关资源
    最近更新 更多