資源簡介
圖像處理的方法封裝
代碼片段和文件信息
using?System;
using?System.Drawing;
using?System.Drawing.Drawing2D;
using?System.Windows.Forms;
namespace?Paway.Windows.Helper
{
????///?
????///?關于?GDI+?繪圖的輔助類
????///?
????public?class?DrawHelper
????{
????????#region?RendererBackground?渲染背景圖片,使背景圖片不失真
????????
????????///?
????????///?渲染背景圖片使背景圖片不失真
????????///?
????????///?
????????///?
????????///?
????????///?
????????public?static?void?RendererBackground(Graphics?g?Rectangle?rect?Image?backgroundImage?bool?method)
????????{
????????????if?(!method)
????????????{
????????????????g.DrawImage(backgroundImage?new?Rectangle(rect.X?+?0?rect.Y?5?rect.He
評論
共有 條評論