单个图片框中的多个图片框 [英] Multiple picturebox in a single picturebox

查看:68
本文介绍了单个图片框中的多个图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai Everyone



Iam Arul,我有一个大图像,大小(3000,936)我将图像放在一个图片框中。使用面板在运行时查看图片。我试图在相同的图片框大小(3000,936)中放置多个图片框,但每当添加新图片框时,旧图片框的长度将增加。我正在使用vb.net



我需要解决方案。



帮助我。

谢谢

问候

Arul

Hai Everyone

Iam Arul, i have a one large image, size(3000,936)i place the image in one picture box. Using panel am viewing the picture in run time. I am trying to place multiple picture box in the same picture box size(3000,936) but whenever am adding new picture box, the length of the old one will be increased. Am using vb.net

I need solution for this.

Help me.
Thanks
Regards
Arul

推荐答案

完全没有意义。您只是超出了 PictureBox 的预期用途,它仅用于简化最简单的任务,本身就是多余的。你根本不需要使用这个控件。



我会解释你该怎么做。



请查看我过去的答案:

如何从旧图纸中清除面板 [ ^ ],

在C#中绘制一个矩形 [ ^ ],

在图片框中附加图片 [ ^ ]。



而且,对于渲染的细节,还有以下几点:

mdi子表单之间的绘制线 [ ^ ],

在面板上捕获图纸 [ ^ ],

什么样的俏皮方法是Paint? (DataGridViewImageCell.Paint(...)) [ ^ ],

如何加速我的vb.net应用程序? [ ^ ]。



-SA
Makes no sense at all. You simply going beyond of the intended use of PictureBox, which is designed only for simplification on the simplest tasks and is itself totally redundant. You don''t need to use this control at all.

I''ll explain you what to do instead.

Please see my past answers:
How do I clear a panel from old drawing[^],
draw a rectangle in C#[^],
Append a picture within picturebox[^].

And, for the detail of rendering, also these:
Drawing Lines between mdi child forms[^],
capture the drawing on a panel[^],
What kind of playful method is Paint? (DataGridViewImageCell.Paint(...))[^],
How to speed up my vb.net application?[^].

—SA






我自己解决了这个问题。我们可以在设计时添加一个数字图片框,你可以在运行时为每个图片框调用一个图像。



感谢您的回复
Hi

I have solved this by myself. we can add a number picture box in design time and u can call a image for each picturebox during runtime.

Thanks for reply


这篇关于单个图片框中的多个图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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