高手请进!

jhtaiyang 2003-11-21 05:49:38
我现在有一段程序(图片是居中的)。
If PrintsetForm.Option1.Value = True Then
'正常放置图片
Picture1.PaintPicture Picture2.Picture, (Picture1.Width -Picture2.Width ) / 2, (Picture1.Height - Picture2.Height) / 2, Picture2.ScaleWidth, Picture2.ScaleHeight
Else
If PrintsetForm.Option2.Value = True Then
'图片旋转90度,仍然要求居中(但是这里是整个的翻转了180度)
A = (Picture1.Width - Picture2.Width ) / 2
B = Picture1.Height - (Picture1.Height - Picture2.Height) / 2
Picture1.PaintPicture Picture2.Picture, A, b, Picture2.ScaleHeight , -Picture2.ScaleWidth
End If
End If
还希望帮我看看!
...全文
40 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

7,789

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧