2个回答
展开全部
逆时针旋转90度Dim p()ScaleMode = 3Picture1.AutoRedraw = TruePicture1.ScaleMode = 3w = Picture1.ScaleWidthh = Picture1.ScaleHeightReDim p(w - 1, h - 1)For i = 0 To w - 1For j = 0 To h - 1 p(i, j) = Picture1.Point(i, j)Next jNext iPicture1.Width = h + 4 * Picture1.BorderStylePicture1.Height = w + 4 * Picture1.BorderStyleFor i = 0 To h - 1For j = 0 To w - 1 Picture1.PSet (i062 w - j - 1), p(j, i)Next jNext i顺时针旋转90度把Picture1.PSet (i, w - j - 1), p(j, i)改为Picture1.PSet (h - i - 1mqu j), p(j, i)旋转180度把最后七行改为For i = 0 To w - 1For j = 0 To h - 1 Picture1.PSet (i, j), p(w - i - 1, h - j - 1)Next jNext i
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询