我有一个面板,我从中生成一个图像并打印...但我需要增加它的尺寸以获得更好的打印质量..好吧,但我想从面板增加尺寸但我需要用户看到这个面板比实际更小......就像缩小一样。我怎么能这样做?
答案 0 :(得分:0)
你可以像这样做
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;
}