如何在不调整初始图像大小的情况下进行缩放功能?

问题描述

我从 Paint Editor Application 下载资源项目。 但是这个应用程序的放大/缩小功能有问题。 在运行时,如果我点击 Zoom-In 按钮,一个 drawArea 似乎也有效。图像已展开且滚动条已更改。 图像尺寸:1366x768

enter image description here

但是如果我尝试将此图像保存为位图文件。此位图的大小将调整为大于初始图像。

保存的图像:2477x1400

enter image description here

SELECT B
FROM listB b
WHERE NOT EXISTS (
    SELECT *
    FROM listA a
    WHERE a.A = b.B)

这些用于导出图像的代码

/// <summary>
/// Draw graphic objects and group selection rectangle (optionally)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void DrawArea_Paint(object sender,PaintEventArgs e)
{      
  Matrix mx = new Matrix();
  mx.Translate(-ClientSize.Width / 2f,-ClientSize.Height / 2f,MatrixOrder.Append);
  mx.Rotate(_rotation,MatrixOrder.Append);
  mx.Translate(ClientSize.Width / 2f + _panX,ClientSize.Height / 2f + _panY,MatrixOrder.Append);
  mx.Scale(_zoom,_zoom,MatrixOrder.Append);
  e.Graphics.Transform = mx;

 ////Draw image here
 }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)