我有一个我一直在玩的软件。我有一个与该软件相关的网络应用程序。软件发送到Web App。 Web应用程序表单发送回软件关闭。在Web应用程序中,有一个带有捕获图像的表单。然后可以从软件的结果侧查看表单和图像。我试图从缩略图弹出图像,以便我可以在更大的窗口中查看。此外,我正在尝试打印第1页上的表单和第2页上的图像。我正在尝试使图像成为整页大小而不是它显示的缩略图。任何帮助?
I have a software that I have been toying around with. I have a web app associated with that software. Software sends to Web App. Web app form send back to software to close out. In the web app there is a form with a capture image. The form and images are then viewable from the results side on the Software. I am trying to have the image popup from a thumbnail so i can be viewed in a larger window. Furthermore, I am trying to print both the form on pg 1 and the image on pg 2. I am looking at trying to make the image a full page size instead of the thumbnail it it showing. Any help?
推荐答案图像不能简单地调整大小(那是什么?),然后可以重新采样,这可以以不同的质量完成并不是一个微不足道的转变,因为它们是像素图像。但是,这可以通过ASP.NET轻松完成(您使用的是什么?您的标记非常不合适;无论您是否使用它,它都与Visual Studio无关)。您可以使用 System.Drawing 。 这在我过去的答案中有解释: 调整vb中的图片大小 [ ^ ], 在流中读取Big Tiff和JPEG文件(>(23000 x 23000)pix)。并实时显示部分内容。 [ ^ ]。 有些查询者试图反对这只适用于 System.Windows.Forms 。不对。它可以在任何地方使用,包括ASP.NET。 至于打印,我会留给用户,这是最好的解决方案。浏览器的用户知道如何以及何时打印。但是,使用@media规则来关注打印介质CSS会很好: http://www.w3 / TR / CSS2 / media.html [ ^ ]。
更多推荐
在VS2012中调整Web应用程序的大小并打印图像
发布评论