【问题标题】:rotate hex image in report builder在报表生成器中旋转十六进制图像
【发布时间】:2022-09-30 00:23:38
【问题描述】:

我想在报表生成器的图片框中将我从十六进制图像转换为 png 的图像旋转 90 度。我无法通过我的研究找到任何方法。你能帮助我吗?

这是我的图片框属性;

图片框特效

如果可以的话,我可以更改后面的 xml 代码,如果你告诉我如何为我的图像标签提供旋转角度。像这样;

图像 xml 代码

我将如何给图片框旋转 90 度?

    标签: xml reporting-services reportbuilder rdl


    【解决方案1】:

    您可以使用函数来旋转图像并从您的 形象价值

    见: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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-17
      • 1970-01-01
      • 1970-01-01
      • 2014-04-20
      • 2021-03-22
      • 2016-02-04
      相关资源
      最近更新 更多