您可以直接将图像加载到Bitmap对象中: let img = "C:\\MyImages\\MyImage.png" let bitmap = new System.Drawing.Bitmap(img) 从那里开始,您可以在图像上使用Bitmap的方法和属性。