Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Feature: Add Distort to MagickScript. [1200]

$
0
0
Add Distort to MagickScript.
Comments: ** Comment from web user: foguer **

Hi,
i tried remplace my C# code :
```
double[] va = { 0, 0, 125, 200 };
image.Distort(DistortMethod.Perspective, va);
```
with this MagickScript
```
<distort method="Perspective">
<arguments>
<value>0</value>
<value>0</value>
<value>125</value>
<value>200</value>
</arguments>
</distort>
```

And i get an error :
System.InvalidCastException : type 'System.Xml.XmlText' to type 'System.Xml.XmlElement'.

à ImageMagick.ScriptVariables.GetNames(XmlElement script)
à ImageMagick.ScriptVariables.GetNames(XmlElement script)
à ImageMagick.ScriptVariables.GetNames(XmlElement script)
à ImageMagick.ScriptVariables.GetNames(XmlElement script)
à ImageMagick.ScriptVariables.GetNames(XmlElement script)
à ImageMagick.ScriptVariables..ctor(XmlDocument script)
à ImageMagick.MagickScript.Initialize(Stream stream)
à ImageMagick.MagickScript..ctor(String fileName)
à Studio2D.Program.Main(String[] args) In my Program


Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>