Class for defines that are used when a jpeg image is read.
Inheritance: DefineCreator, IReadDefines
Beispiel #1
0
        private IDefines CreateJpegReadDefines(XmlElement element)
        {
            if (element == null)
            {
                return(null);
            }
            JpegReadDefines result = new JpegReadDefines();

            result.BlockSmoothing  = Variables.GetValue <Nullable <Boolean> >(element, "blockSmoothing");
            result.Colors          = Variables.GetValue <Nullable <Int32> >(element, "colors");
            result.DctMethod       = Variables.GetValue <Nullable <ImageMagick.Defines.DctMethod> >(element, "dctMethod");
            result.FancyUpsampling = Variables.GetValue <Nullable <Boolean> >(element, "fancyUpsampling");
            result.Size            = Variables.GetValue <MagickGeometry>(element, "size");
            result.SkipProfiles    = Variables.GetValue <Nullable <ImageMagick.Defines.ProfileTypes> >(element, "skipProfiles");
            return(result);
        }
Beispiel #2
0
 private IDefines CreateJpegReadDefines(XmlElement element)
 {
   if (element == null)
     return null;
   JpegReadDefines result = new JpegReadDefines();
   result.BlockSmoothing = Variables.GetValue<Nullable<Boolean>>(element, "blockSmoothing");
   result.Colors = Variables.GetValue<Nullable<Int32>>(element, "colors");
   result.DctMethod = Variables.GetValue<Nullable<ImageMagick.Defines.DctMethod>>(element, "dctMethod");
   result.FancyUpsampling = Variables.GetValue<Nullable<Boolean>>(element, "fancyUpsampling");
   result.Size = Variables.GetValue<MagickGeometry>(element, "size");
   result.SkipProfiles = Variables.GetValue<Nullable<ImageMagick.Defines.ProfileTypes>>(element, "skipProfiles");
   return result;
 }