@@ -82,69 +82,36 @@ public IImageEncoder Encoder
8282 }
8383
8484 /// <summary>
85- /// Create a new instance of the <see cref="Image"/> class from the given stream.
86- /// </summary>
87- /// <typeparam name="TPixel">The pixel format.</typeparam>
88- /// <param name="configuration">The configuration.</param>
89- /// <param name="source">The source.</param>
90- /// <returns>The <see cref="FormattedImage"/>.</returns>
91- public static FormattedImage Load < TPixel > ( Configuration configuration , Stream source )
92- where TPixel : unmanaged, IPixel < TPixel >
93- {
94- var image = Image . Load < TPixel > ( configuration , source , out IImageFormat format ) ;
95- return new FormattedImage ( image , format ) ;
96- }
97-
98- /// <summary>
99- /// Create a new instance of the <see cref="Image"/> class from the given stream.
100- /// </summary>
101- /// <param name="configuration">The configuration.</param>
102- /// <param name="source">The source.</param>
103- /// <returns>The <see cref="FormattedImage"/>.</returns>
104- public static FormattedImage Load ( Configuration configuration , Stream source )
105- {
106- var image = Image . Load ( configuration , source , out IImageFormat format ) ;
107- return new FormattedImage ( image , format ) ;
108- }
109-
110- /// <summary>
111- /// Create a new instance of the <see cref="Image{TPixel}"/> class from the given stream.
85+ /// Create a new instance of the <see cref="FormattedImage"/> class from the given stream.
11286 /// </summary>
11387 /// <typeparam name="TPixel">The pixel format.</typeparam>
11488 /// <param name="configuration">The configuration.</param>
11589 /// <param name="source">The source.</param>
11690 /// <returns>A <see cref="Task{FormattedImage}"/> representing the asynchronous operation.</returns>
117- public static async Task < FormattedImage > LoadAsync < TPixel > ( Configuration configuration , Stream source )
91+ internal static async Task < FormattedImage > LoadAsync < TPixel > ( Configuration configuration , Stream source )
11892 where TPixel : unmanaged, IPixel < TPixel >
11993 {
12094 ( Image < TPixel > image , IImageFormat format ) = await Image . LoadWithFormatAsync < TPixel > ( configuration , source ) ;
12195 return new FormattedImage ( image , format ) ;
12296 }
12397
12498 /// <summary>
125- /// Loads the specified source .
99+ /// Create a new instance of the <see cref="FormattedImage"/> class from the given stream .
126100 /// </summary>
127101 /// <param name="configuration">The configuration.</param>
128102 /// <param name="source">The source.</param>
129103 /// <returns>A <see cref="Task{FormattedImage}"/> representing the asynchronous operation.</returns>
130- public static async Task < FormattedImage > LoadAsync ( Configuration configuration , Stream source )
104+ internal static async Task < FormattedImage > LoadAsync ( Configuration configuration , Stream source )
131105 {
132106 ( Image image , IImageFormat format ) = await Image . LoadWithFormatAsync ( configuration , source ) ;
133107 return new FormattedImage ( image , format ) ;
134108 }
135109
136110 /// <summary>
137- /// Saves image to the specified destination stream.
138- /// </summary>
139- /// <param name="destination">The destination stream.</param>
140- public void Save ( Stream destination ) => this . Image . Save ( destination , this . encoder ) ;
141-
142- /// <summary>
143- /// Saves image to the specified destination stream.
111+ /// Saves the <see cref="FormattedImage"/> to the specified destination stream.
144112 /// </summary>
145113 /// <param name="destination">The destination stream.</param>
146- /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
147- public Task SaveAsync ( Stream destination ) => this . Image . SaveAsync ( destination , this . encoder ) ;
114+ internal void Save ( Stream destination ) => this . Image . Save ( destination , this . encoder ) ;
148115
149116 /// <summary>
150117 /// Gets the EXIF orientation metata for the <see cref="FormattedImage"/>.
0 commit comments