55问答网
所有问题
当前搜索:
vb清空picturebox
如何在
vb
中的
picturebox
里画图?
答:
Sub Form_Click()Dim CX, CY, Radius, Limit ' Declare variable.
Picture
1.AutoRedraw = True Picture1.ScaleMode = 3 ' 以像素为单位。CX = Picture1.ScaleWidth / 2 ' X 位置。CY = Picture1.ScaleHeight / 2 ' Y 位置。If CX > CY Then Limit = CY Else Limit = CX ...
vb
.net中如何把
picturebox
定义为画布
答:
定义一个画布,来源于
picturebox
Dim huabu As Graphicshuabu = picturebox.CreateGraphics使用的时候还需要定义画笔 Dim pen As New Pen(Brushes.Black, 1)然后就可以画图了 huabu.DrawLine(pen, 0, 0, 10, 10)更多的关于绘图和坐标变换的东西可以参考 http://www.codesky.net/article/201001/...
VB
中怎么用
picturebox
把图片调成适合图形框大小的。不会用paintpicture...
答:
Me.
Picture
1.AutoSize=True
vb
中如何根据
PictureBox
的大小自动调整相片
答:
添加两个
Picture
控件,先载入Picture2,然后根据Picture1的大小自动调整显示。代码如下:Private Sub Form_Load() Picture1.AutoRedraw = True '重绘图片 Picture1.AutoSize = False '图片框大小不变 Picture1.Visible = True 'Picture1.BackColor = RGB(255, 255, 255) '设置图片框...
picturebox
根据数量自动创建
答:
PictureBox
pictureBox
1 = new PictureBox();Random t = new Random();Form1 play = new Form1()int i;for (i = 0; i < 3; i++){ s[i] = t.Next(this.Width - 40);pictureBox1.Location = new System.Drawing.Point(s[i], 0);pictureBox1.Image = Image.FromFile(@"..\...
VB
中如何才能自动放大缩小图片填充到图片框中啊?
答:
ClientHeight=5580 ClientLeft=60 ClientTop=345 ClientWidth=7935 LinkTopic="Form1"ScaleHeight=5580 ScaleWidth=7935 StartUpPosition=3'窗口缺省 Begin
VB
.
PictureBox
Picture1 AutoRedraw=-1'True AutoSize=-1'True Height=3960 Left=-15 Picture="Form1.frx":0000 ScaleHeight=...
VB
中如何才能自动放大缩小图片填充到图片框中啊?
答:
ClientHeight=5580 ClientLeft=60 ClientTop=345 ClientWidth=7935 LinkTopic="Form1"ScaleHeight=5580 ScaleWidth=7935 StartUpPosition=3'窗口缺省 Begin
VB
.
PictureBox
Picture1 AutoRedraw=-1'True AutoSize=-1'True Height=3960 Left=-15 Picture="Form1.frx":0000 ScaleHeight=...
VB
.net 如何保存图片
picturebox
1.Image.Save使用
答:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If
PictureBox
1.Image Is Nothing Then Exit Sub PictureBox1.Image.Save("xxx")End Sub
我想用
VB
写一个压缩图片的程序,应该怎么写
答:
Begin
VB
.Image ImgSrc Height = 855 Left = 240 Top = 240 Width = 855 End End Begin VB.
PictureBox
PicToolBar Align = 1 'Align Top HasDC = 0 'False Height = 495 Left = 0 ScaleHeight = 29 ScaleMode = 3 'Pixel ScaleWidth = 363 TabIndex = 0 TabStop = 0 'False Top = 0 Wid...
VB
全屏截图代码
答:
Begin
VB
.
PictureBox
Picture1 BackColor = &H00F8E2DE& BorderStyle = 0 'None Height = 390 Left = 0 ScaleHeight = 390 ScaleWidth = 3075 TabIndex = 0 Top = 0 Visible = 0 'False Width = 3080 Begin VB.Line...
棣栭〉
<涓婁竴椤
8
9
10
11
13
14
15
16
17
涓嬩竴椤
12
灏鹃〉
其他人还搜