繁体   English   中英

在“查看窗口”窗体应用程序中缩小

[英]Zoom out in View windows form application

我有一个面板,可以从中生成图像并进行打印...但是我需要从中增大尺寸以获得更好的打印质量。.好的,但是我想从面板中增大尺寸,但是我需要用户看到这个面板小于实际尺寸...就像缩小一样。 我怎样才能做到这一点?

您可以像这样简单地做

    private void Form1_Load(object sender, EventArgs e)
    {

        panel1.BackgroundImageLayout = ImageLayout.Center;
        //panel1.BackgroundImageLayout = ImageLayout.None;

    }


    private void btnZoomOut_Click(object sender, EventArgs e)
    {
        panel1.Height = panel1.Size.Height - 1;
        panel1.Width = panel1.Size.Width - 1;
    }

    private void btnZommin_Click(object sender, EventArgs e)
    {
        panel1.Height = panel1.Size.Height + 1;
        panel1.Width = panel1.Size.Width + 1;
    } 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM