예제 #1
0
        /// <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;
        }
예제 #2
0
 /// <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());
 }