/// <summary>
        /// Instantiates the <see cref="ImageRequest"/>.
        /// </summary>
        internal ImageRequest(ImageRequestBuilder builder)
        {
            CacheChoice = builder.CacheChoice;
            SourceUri   = builder.SourceUri;

            IsProgressiveRenderingEnabled   = builder.IsProgressiveRenderingEnabled;
            IsLocalThumbnailPreviewsEnabled = builder.IsLocalThumbnailPreviewsEnabled;

            ImageDecodeOptions = builder.ImageDecodeOptions;

            ResizeOptions       = builder.ResizeOptions;
            IsAutoRotateEnabled = builder.IsAutoRotateEnabled;

            Priority = builder.Priority;
            LowestPermittedRequestLevel = builder.LowestPermittedRequestLevel;
            IsDiskCacheEnabled          = builder.IsDiskCacheEnabled;

            Postprocessor = builder.Postprocessor;

            RequestListener = builder.RequestListener;
        }
 /// <summary>
 /// Creates ImageRequest from uri.
 /// </summary>
 /// <param name="uri">The uri.</param>
 public static ImageRequest FromUri(Uri uri)
 {
     return((uri == null) ? null : ImageRequestBuilder.NewBuilderWithSource(uri).Build());
 }