mirror of https://github.com/SixLabors/ImageSharp
5 changed files with 4 additions and 56 deletions
@ -1,52 +0,0 @@ |
|||||
// <copyright file="Image.Create.cs" company="James Jackson-South">
|
|
||||
// Copyright (c) James Jackson-South and contributors.
|
|
||||
// Licensed under the Apache License, Version 2.0.
|
|
||||
// </copyright>
|
|
||||
|
|
||||
namespace ImageSharp |
|
||||
{ |
|
||||
using ImageSharp.PixelFormats; |
|
||||
|
|
||||
/// <content>
|
|
||||
/// Adds static methods allowing the creation of new images from given dimensions.
|
|
||||
/// </content>
|
|
||||
public static partial class Image |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// Create a new instance of the <see cref="Image{TPixel}"/> class with the given height and the width.
|
|
||||
/// </summary>
|
|
||||
/// <param name="width">The width of the image in pixels.</param>
|
|
||||
/// <param name="height">The height of the image in pixels.</param>
|
|
||||
/// <param name="configuration">
|
|
||||
/// The configuration providing initialization code which allows extending the library.
|
|
||||
/// </param>
|
|
||||
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
||||
/// <returns>
|
|
||||
/// A new <see cref="Image{TPixel}"/>.
|
|
||||
/// </returns>
|
|
||||
internal static Image<TPixel> Create<TPixel>(int width, int height, Configuration configuration) |
|
||||
where TPixel : struct, IPixel<TPixel> |
|
||||
{ |
|
||||
return Create<TPixel>(width, height, null, configuration); |
|
||||
} |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Create a new instance of the <see cref="Image{TPixel}"/> class with the given height and the width.
|
|
||||
/// </summary>
|
|
||||
/// <param name="width">The width of the image in pixels.</param>
|
|
||||
/// <param name="height">The height of the image in pixels.</param>
|
|
||||
/// <param name="metadata">The images matadata to preload.</param>
|
|
||||
/// <param name="configuration">
|
|
||||
/// The configuration providing initialization code which allows extending the library.
|
|
||||
/// </param>
|
|
||||
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
||||
/// <returns>
|
|
||||
/// A new <see cref="Image{TPixel}"/>.
|
|
||||
/// </returns>
|
|
||||
internal static Image<TPixel> Create<TPixel>(int width, int height, ImageMetaData metadata, Configuration configuration) |
|
||||
where TPixel : struct, IPixel<TPixel> |
|
||||
{ |
|
||||
return new Image<TPixel>(width, height, metadata, configuration); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue