vb.netmap1的简单介绍

VB.net 如何将数据转换为位图(Bitmap)所需要的byte()数组?急?。。。?/h2>public Byte[] getphoto(string photopath)//参数图片地址,主要用到的类有FileStream
{
string str = photopath;
FileStream file = new FileStream(str, FileMode.Open, FileAccess.Read);
Byte[] bytBLOBData = https://www.04ip.com/post/new Byte[file.Length];
file.Read(bytBLOBData, 0, bytBLOBData.Length);
file.Close();
return bytBLOBData;
}//这是定义函数..
VB.NET加载图片问题【vb.netmap1的简单介绍】'先建立一个bitmap对象vb.netmap1,指向图像文件
Dim pic As Bitmap = New Bitmap("e:\1.jpg")
'定义一个图片框vb.netmap1的graphics对象
Dim g As Graphics = PictureBox1.CreateGraphics()
'在图片框上绘图
g.DrawImage(pic, 0, 0, pic.Width, pic.Height)
'释放bitmap对象
pic.Dispose()
'现在即可对文件进行操作
vb.net桌面中bitmap类如何直接绘制到屏幕?可以直接显示的 。你看下面的示例,使用vb.net画的齿轮:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
b = New Bitmap(PictureBox1.Width, PictureBox1.Height)
g = Graphics.FromImage(b)
'g.RotateTransform(90)
g.Clear(Color.White)
g.TranslateTransform(PictureBox1.Width / 2, PictureBox1.Height / 2)
g.ScaleTransform(1, -1)
'g.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias
g.SmoothingMode = Drawing2D.SmoothingMode.HighQuality
DrawCL(g, New PointF(Val(TextBox1.Text), Val(TextBox2.Text)), Val(TextBox3.Text), Val(TextBox4.Text), Val(TextBox5.Text), Val(TextBox6.Text), Val(TextBox7.Text), Val(TextBox8.Text), Val(TextBox9.Text))
DrawCL(g, New PointF(Val(TextBox18.Text), Val(TextBox17.Text)), Val(TextBox16.Text), Val(TextBox15.Text), Val(TextBox14.Text), Val(TextBox13.Text), Val(TextBox12.Text), Val(TextBox11.Text), Val(TextBox10.Text))
PictureBox1.Image = b
End Sub
vb.net 图形创建与保存问题 。详见问题补充 。Dim bmp As New Bitmap("打开图片vb.netmap1的路径")
bmp.Save("保存图片vb.netmap1的路径")
Dim t As New TextBox()
Dim p As New PictureBox
p.Image = bmp 'picture等支持imagevb.netmap1的控件 。
t.CreateGraphics.DrawImage(bmp, New Point) '文本控件 。
Me.BackgroundImage = bmp '窗体
vb.net 如何嵌入地图新建一个文件,写入下面的代码:
!doctype html
html
head
meta name="viewport" content="initial-scale=1.0, user-scalable=no" /
meta http-equiv="Content-Type" content="text/html; charset=gbk" /
titleBaidu Map V1.2/title
script type="text/javascript" src="/images/defaultpic.gif"
!-- add baidu map api --
/script
/head
body
div id="container" style="width: 600px; height: 400px;"
/div
/body
/html
script type="text/javascript"
var map = new BMap.Map("container");// new Map
var point = new BMap.Point(116.397128, 39.916527);// Location, (经度, 纬度)
map.centerAndZoom(point, 15);// show Map
// 添加缩放功能
map.enableScrollWheelZoom();
map.enableKeyboard();
/script
保存到程序exe同一目录下,文件名:map.html
然后BUTTON点击事件:
WebBrowser1.Navigate(Application.StartupPath"\map.html")
这样就可以了
ps:经纬度可以到百度地图去获取
或者到:去生成代码
vb.netmap1的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于、vb.netmap1的信息别忘了在本站进行查找喔 。

    推荐阅读