none
在WPF中二维数据如何绘制成不规则的彩色图 RRS feed

  • 问题

  • i have known how to use writeablebitmap class from wpf to image a 2D matrix data just like the upper part in the graphic, but the down part image from the same data shows much different, the image is curled and bending, it's same as the image have an offset or shift from the original data。

    我已经知道如何使用writeablebitmap来绘制二维矩阵数据,此时绘制的图形是规则的,如果将该二维数据绘制为弯曲边界的,可不可以给个思路,是不是还需要writeablebitmap类?writeablebitmap类似乎是绘制那种矩形的,对于不规则边界似乎没有对应的函数。

    也就是上面的图如何变为下面的图。已知最上面图的每个点measure depth下对应的井斜,也就是最下面图每一个点TVD下弯曲的角度。

    2020年5月13日 12:25

全部回复

  • 你好,

    你想达到的效果是扭曲你的2D图像,关于扭曲图形的相关知识,你可以参在官方文档:Skew a element. 如只使用WPF的基础方法,需要大量的图形处理的计算才可以实现,你可以考虑借助三方处理图形的工具。

    谢谢

    Daisy Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2020年5月14日 6:38
  • 谢谢给的建议
    2020年5月14日 9:18
  • 你好,

    不客气,希望对你有所帮助.

    谢谢

    Daisy Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2020年5月29日 5:44