我的 Pleora SDK 已获得许可,我不是在谈论水印。
有时它保存得很好,但有时图像会保存这些水平线伪影。
我正在保存这样的图像:
PvBuffer buffer;
PvResult operationalResult;
var filename = "...some filename...";
var result = stream.RetieveBuffer(ref buffer, ref operationalResult, 100);
if(result.IsOK())
{
PvImage image = buffer.Image;
var bitmap = new System.Drawing.Bitmap(
width: (int)image.Width,
height: (int)image.Height,
format: PixelFormat.Format24bppRgb
);
image.CopyToBitmap(bitmap);
bitmap.save(filename, ImageFormat.Jpeg);
}
有问题的示例图像:
这两条水平线就是我所说的。有时它们存在,有时不存在,有时它只有 1 行。
我可以做些什么来避免这个问题?