在Viewport3D中使用矢量图像的最佳方法? [英] Best way to use a vector image in Viewport3D?

查看:81
本文介绍了在Viewport3D中使用矢量图像的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够用这样的标准WPF显示矢量图像.

I was able to display a vector image with standard WPF like this.

<Image >
                            <Image.Source>
                                <DrawingImage>
                                    <DrawingImage.Drawing>
                                        <GeometryDrawing>
                                            <GeometryDrawing.Pen>
                                                <Pen Brush="#8F8E8F" Thickness="1" />
                                            </GeometryDrawing.Pen>
                                            <GeometryDrawing.Geometry>
                                                <LineGeometry StartPoint="0,0" EndPoint="0,10"/>
                                            </GeometryDrawing.Geometry>
                                        </GeometryDrawing>
                                    </DrawingImage.Drawing>
                                </DrawingImage>
                            </Image.Source>
                        </Image>

不幸的是,我无法在Viewport3D元素中执行相同的操作.

Unfortunately I was not able to do the same inside a Viewport3D element.

我从图像创建了VisualBrush,并将其添加到我的3D模型的DiffuseMaterial中.

I created a VisualBrush from the Image and added it to the DiffuseMaterial of my 3D Model.

我也通过DrawingBrush尝试过.不幸的是,矢量图像在预渲染处理的某个点被渲染为标准位图. (这就是我的想法).

I also tried it via a DrawingBrush. Unfortunately the vector image gets renderd to a standard bitmap at some point of the pre-render processed. (that is what i think).

是否甚至可以在Viewport3D中显示矢量图像?

Is it even possible to display a vector image inside a Viewport3D?

谢谢您的帮助.

推荐答案

>>是否甚至可以在Viewport3D中显示矢量图像?

>>Is it even possible to display a vector image inside a Viewport3D?

对于您的问题,建议您使用Microsoft Expression Design在xaml中创建矢量图像,然后将矢量图像放入Viewport3D中.

For your question, I suggest you use Microsoft Expression Design to create the vector image in xaml, And put the vector image in Viewport3D .

https://msdn.microsoft.com/en-us/库/ms747437(v=vs.110).aspx

最好的问候,

鲍勃


这篇关于在Viewport3D中使用矢量图像的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆