Beispiel #1
0
 public override Img Execute(Img image)
 {
     using (MagickImage mImage = new MagickImage(image.ImageStream))
     {
         var resultImg = new MemoryStream();
         mImage.Format = ChooseTargetFormat(TaskParams["to"]);
         mImage.Write(resultImg);
         resultImg.Seek(0, SeekOrigin.Begin);
         return(new Img(image.ImgId, resultImg, TaskParams["to"]));
     }
 }
Beispiel #2
0
 public abstract Img Execute(Img image);