【发布时间】:2022-09-30 00:23:38
【问题描述】:
我想在报表生成器的图片框中将我从十六进制图像转换为 png 的图像旋转 90 度。我无法通过我的研究找到任何方法。你能帮助我吗?
这是我的图片框属性;
图片框特效
如果可以的话,我可以更改后面的 xml 代码,如果你告诉我如何为我的图像标签提供旋转角度。像这样;
图像 xml 代码
我将如何给图片框旋转 90 度?
标签: xml reporting-services reportbuilder rdl
我想在报表生成器的图片框中将我从十六进制图像转换为 png 的图像旋转 90 度。我无法通过我的研究找到任何方法。你能帮助我吗?
这是我的图片框属性;
图片框特效
如果可以的话,我可以更改后面的 xml 代码,如果你告诉我如何为我的图像标签提供旋转角度。像这样;
图像 xml 代码
我将如何给图片框旋转 90 度?
标签: xml reporting-services reportbuilder rdl
您可以使用函数来旋转图像并从您的 形象价值
见:https://learn.microsoft.com/en-us/dotnet/api/system.drawing.rotatefliptype?view=netframework-4.8
Public Function EditImage(ByVal picbytes as Byte()) as Byte()
Dim ms as System.IO.MemoryStream = Nothing
Dim rms as System.IO.MemoryStream = Nothing
Dim bm as System.Drawing.Bitmap
ms = new System.IO.MemoryStream(picbytes, 0, picbytes.Length)
bm = new System.Drawing.Bitmap(ms)
' Image manipulation code will go here
bm.RotateFlip(System.Drawing.RotateFlipType.Rotate270FlipNone)
rms = new System.IO.MemoryStream()
bm.Save(rms, System.Drawing.Imaging.ImageFormat.Jpeg)
Return rms.ToArray()
End Function
【讨论】: