Ejemplo n.º 1
0
 private void EventsScriptWrite(object sender, ScriptWriteEventArgs arguments)
 {
     Assert.AreEqual("write.id", arguments.Id);
     Assert.AreEqual(100, arguments.Image.Density.X);
     Assert.AreEqual(100, arguments.Image.Density.Y);
     Assert.AreEqual(DensityUnit.PixelsPerCentimeter, arguments.Image.Density.Units);
 }
Ejemplo n.º 2
0
            public void ShouldSetTheProperties()
            {
                using (var image = new MagickImage())
                {
                    var eventArgs = new ScriptWriteEventArgs("test", image);

                    Assert.AreEqual("test", eventArgs.Id);
                    Assert.AreEqual(image, eventArgs.Image);
                }
            }
Ejemplo n.º 3
0
 private static void OnScriptWrite(object sender, ScriptWriteEventArgs arguments)
 {
     arguments.Image.Write(SampleFiles.SnakewarePng);
 }
Ejemplo n.º 4
0
 private void EventsScriptWrite(object sender, ScriptWriteEventArgs arguments)
 {
     Assert.AreEqual("write.id", arguments.Id);
     Assert.AreEqual(100, arguments.Image.ResolutionX);
     Assert.AreEqual(100, arguments.Image.ResolutionY);
 }
 //===========================================================================================
 private void EventsScriptWrite(object sender, ScriptWriteEventArgs arguments)
 {
     Assert.AreEqual("write.id", arguments.Id);
 }