我如何放大作为输入的位图字符 [英] how i can magnify a bitmap character that i get it as input

查看:61
本文介绍了我如何放大作为输入的位图字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.我有一个问题.谁能解决?如何放大作为输入的位图字符?感谢

解决方案

尝试以下操作:用于自定义的简单缩放功能控件 [ ^ ]

类似这样的内容:

 私有 浮动 zoom = 2F;

Form1()
{
    InitializeComponent();
    pictureBox1.Paint + =  PaintEventHandler(pictureBox1_Paint);
}

无效 pictureBox1_Paint(对象发​​件人,PaintEventArgs e)
{
    e.Graphics.ScaleTransform(zoom,zoom);
    e.Graphics.DrawImage(Properties.Resources.yourImage, 0  0 );
} 


hi every body.i have a problem.who can solve it? how i can magnify a bitmap character that i get it as input ? thanks

解决方案

Try this: Simple zoom functionality for custom controls[^]


Something like this:

private float zoom = 2F;

Form1()
{
    InitializeComponent();
    pictureBox1.Paint += new PaintEventHandler(pictureBox1_Paint);
}

void pictureBox1_Paint(object sender, PaintEventArgs e)
{
    e.Graphics.ScaleTransform(zoom, zoom);
    e.Graphics.DrawImage(Properties.Resources.yourImage, 0, 0);
}


这篇关于我如何放大作为输入的位图字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆