C# Winform PaintEventArgs类作为参数的方法怎么调用

图片说明
图片说明
想通过Button_Click事件调用这个函数,这个函数调用了另一个方法(最邻近插值)实现对图像的缩放。
总之目的是想实现对图像的缩放,自定义参数。最邻近插值的代码是别人写的,我想拿来改改使用。
这是最邻近插值方法(我改了)和调用它的函数
请问该怎么在Button_Click中调用LockUnlockBitsExample(object sender, PaintEventArgs e)?
方法参考:https://www.cnblogs.com/dearzhoubi/p/8661283.html
问题一:我瞎写的这个LockUnlockBitsExample有没有问题。
问题二:怎么实现调用这个LockUnlockBitsExample

LockUnlockBitsExample(this, this.CreateGraphics(), new System.Drawing.Rectangle(top, left, width, height));
其中top left width height分别是你希望画图的左上角和长宽坐标,4个整数。