以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 绘制图片,文字怎么旋转90度 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=120482) |
-- 作者:mamuaiqing -- 发布时间:2018/6/16 22:34:00 -- 绘制图片,文字怎么旋转90度 Dim imgback As image = getimage("C:\\图片.jpg") Dim g = graphics.fromimage(bmp) |
-- 作者:有点甜 -- 发布时间:2018/6/17 15:25:00 -- Dim imgback As image = getimage("d:\\test.jpg") Dim angle As Double = 45
Dim newW As Integer = Math.Max(Math.Abs(w * cos - h * sin), Math.Abs(w * cos + h * sin)) Dim bmpSrc As new Bitmap(newW, newH) \'g.FillRectangle(Brushes.Red,0,0,newW,newH) g.TranslateTransform(newW/2, newH/2) Dim fnt As New Font("宋体",16)
g.Dispose()
|