存储路径几何并稍后更改它(Storing the path geometry and changing it later)
我正在使用WPF形状来渲染一些几何体。 我保存了形状的渲染几何体,并在以后添加它们。 现在的问题是我希望有人能够改变几何对象,比如增加形状的高度和宽度。
我知道一种方法,我可以更新字符串并将其分配回几何对象以更新它。
是否有任何替代或更好的方法来实现相同的目标?
I am using WPF shapes to render some geometry. I save the rendered geometry of the shapes and add them later. Now the thing is that I want someone to be able to change the geometry object like increasing height and width of the shape.
I know a way where I can update the string and assign it back to the geometry object to update it.
Is there any alternate or better way to accomplish the same?
原文:https://stackoverflow.com/questions/17565220
更新时间:2023-10-18 16:10
最满意答案
相关问答
更多-
android 3d游戏开发 所需要的软件[2023-10-23]
eclipse -
安卓应用程序开发使用哪个开发工具最好?[2022-11-21]
eclipse -
安卓手机编程现在用什么软件?并求下载地址。[2022-05-06]
eclipse -
只是试图在Eclipse 4.4.2:没有语法高亮。 也许你有摇篮IDE包由Nodeclipse / Enide安装在您的4.4.1? 更新:所以我刚才看到你有两个 buildship并安装了摇篮IDE包。 这将安装多个编辑.gradle文件: “摇篮构建脚本编辑器”(buildship,左侧) “极简摇篮编辑器”(摇篮IDE包,右边) 要打开.gradle与其他编辑器类型的文件,右键单击该文件,选择“打开方式”: 我建议不要使用多重摇篮插件,你可以感到困惑通过插件做了什么。 你应该是最适合你的计划行事。 ...
-
AWS Toolkit for Eclipse Mars在启动时出错(AWS Toolkit for Eclipse Mars giving error while startup)[2023-03-18]
这是由AWS Access Id和密钥未设置引起的。 您可以删除C:\ users \ uername \ .aws文件夹并重新启动eclipse,它会再次要求您输入凭据。 It was caused by AWS Access Id and Secret Key not setup. You can delete the C:\users\uername\.aws folder and restart the eclipse, it would ask you again to put in the cr ... -
正如你所说,这是我已经面对的日食臭虫。 我可以修复使用版本4.5.1。 请使用以下链接下载错误修复版本。 http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?h=R4_5_maintenance&id=3a54e1075910dfdcd0ae404611dd26506404e6e7 As you said it is the bug of eclipse already I faced. I could fix that using versi ...
-
最后,我使用了本回答中发布的信息,该信息符合要求。 Finally I used the information posted in this answer which worked as desired.
-
由于Eclipse本身是一个OSGi程序,它已经包含Equinox。 要创建OSGi项目,请使用“文件>新建>项目...>插件项目”(也可以查看“文件”>“新建”>“项目...”>“插件开发”>“插件项目”) 在新项目向导的第一页上,在“目标平台”部分中选择“Equinox”。 Since Eclipse itself is an OSGi program it already includes Equinox. To create an OSGi project use 'File > New > Pro ...
-
我也有使用subclipse的问题。 我改为Subversive,它运行良好。 So it turns out it wasn't hung on refresh but actually doing a refresh and the progress bar was just inaccurate. I do refreshes often and they usually take five seconds at most. For some reason, something triggered m ...
-
(我无法确切地看到你所遇到的错误,但我看到了类似的东西。) 从这样的代码开始: public static void main(String[] args) { System.out.printf("%s => Cowz Testing: testing Add a Representative\n", new Date()); } 然后,注释掉printf行,所以它现在看起来像这样: public static void main(String[] args) { ...