如何使用vb.net在行中显示图像-printpreviewcontrol中的列格式 [英] How to display images in rows - coloums format in printpreviewcontrol using vb.net

查看:136
本文介绍了如何使用vb.net在行中显示图像-printpreviewcontrol中的列格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在将vb.net,vs2008与win7一起使用.
图像显示在printpreviewcontrol上,但我需要帮助如何以行s- coloum格式显示图像.
我有6张图片,用于在printpreviewcontrol上显示3x3行的"s-列"格式.

帮助将不胜感激....
给我任何想法或链接.........

问候
Mukesh

Hi All,

I am using vb.net,vs2008 with win7.
Images display on printpreviewcontrol but i need to help how to display images in row''s- coloum''s format.
I have 6 images for display 3x3 row''s-colum''s format on printpreviewcontrol.

help will be appreciated....
give me any idea or links.........

Regards
Mukesh

推荐答案

您必须在页面上的所需位置绘制图像.将页面分成网格只需要一点数学.一旦有了它,就必须调整每个单元格"的左上角的坐标及其宽度和高度.然后,只需将每个图像绘制到其自己的单元格中,然后缩放以适合您计算出的空间即可.
You have to paint the images where you want them on the page. All it takes is a bit of math to divide up the page into a grid. Once you have that, you''ll have to coordinates of the upper left corners of each "cell" and their width and height. Then it''s just a matter of painting each image into its own cell, scaled to fit in the space you calculated.


这篇关于如何使用vb.net在行中显示图像-printpreviewcontrol中的列格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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