Exemplo n.º 1
0
 private static void UpdateAttributes(ImageData image)
 {
     image.filter = "DCTDecode";
     if (image.GetColorTransform() == 0)
     {
         IDictionary <String, Object> decodeParms = new Dictionary <String, Object>();
         decodeParms.Put("ColorTransform", 0);
         image.decodeParms = decodeParms;
     }
     if (image.GetColorSpace() != 1 && image.GetColorSpace() != 3 && image.IsInverted())
     {
         image.decode = new float[] { 1, 0, 1, 0, 1, 0, 1, 0 };
     }
 }