VB.NET图像查看器用户控件 [英] VB.NET Image Viewer User Control

查看:84
本文介绍了VB.NET图像查看器用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在Picturebox中操作图像时遇到问题。

我不知道我应该在哪个词中使用这个,希望有人会理解



这是我的初始化图像代码

 ImgViewer.Bmp = 位图(ImgViewer.ImagePath)
ImgViewer.PageNbr = 1
ImgViewer。 TotalPage = ImgViewer.Bmp.GetFrameCount(Imaging.FrameDimension.Page)
PictureBox1.Image = ImgViewer.Bmp
ImgViewer.Width = ImgViewer.Bmp.Width
ImgViewer.Height = ImgViewer.Bmp。高度
ImgViewer.Factor = 1
PictureBox1.Width = ImgViewer.Width
PictureBox1.Height = ImgViewer.Height
PictureBox1.MinimumSize = 大小(ImgViewer.Width * 0 01 ,ImgViewer.Height * 0 01





我的问题是当我编辑/更改图片框图像时,位图也改变了,反之亦然。



是否有代码/语法使 ImgViewer.Bmp PictureBox1.Image 使它们独立。编辑一个变量不会影响另一个变量。我将使用 ImgViewer.Bmp 作为原始图像, PictureBox1.Image 将是已处理的图像(抗锯齿) ,旋转,反转颜色等)



请帮助...

谢谢

解决方案

Hello everyone,

Have a problem in manipulating image in Picturebox.
I don't know what term should I use in this, hope someone will understand

This is my code on putting initializing image

ImgViewer.Bmp = New Bitmap(ImgViewer.ImagePath)
ImgViewer.PageNbr = 1
ImgViewer.TotalPage = ImgViewer.Bmp.GetFrameCount(Imaging.FrameDimension.Page)
PictureBox1.Image = ImgViewer.Bmp
ImgViewer.Width = ImgViewer.Bmp.Width
ImgViewer.Height = ImgViewer.Bmp.Height
ImgViewer.Factor = 1
PictureBox1.Width = ImgViewer.Width
PictureBox1.Height = ImgViewer.Height
PictureBox1.MinimumSize = New Size(ImgViewer.Width * 0.01, ImgViewer.Height * 0.01)



My problem is when I'm editeng/changing the picturebox image, the bitmap also changes or vice versa.

Is there a code/syntax that make the ImgViewer.Bmp and PictureBox1.Image that make them independent. Editing one variable can't affect the other. I will use the ImgViewer.Bmp as a original image and PictureBox1.Image will be the processed image (Anti-Aliasing, Rotate, Invert Colors and etc.)

Please Help...
Thanks

解决方案

这篇关于VB.NET图像查看器用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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