mirror of https://github.com/SixLabors/ImageSharp
26 changed files with 463 additions and 124 deletions
@ -0,0 +1,25 @@ |
|||||
|
// Copyright (c) Six Labors and contributors.
|
||||
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
|
||||
|
using SixLabors.ImageSharp.MetaData; |
||||
|
using SixLabors.Primitives; |
||||
|
|
||||
|
namespace SixLabors.ImageSharp.Formats.Bmp |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Contains information about the bmp including dimensions, pixel type information and additional metadata.
|
||||
|
/// </summary>
|
||||
|
public class BmpInfo : ImageInfo |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Initializes a new instance of the <see cref="BmpInfo" /> class.
|
||||
|
/// </summary>
|
||||
|
/// <param name="pixelType">The image pixel type information.</param>
|
||||
|
/// <param name="size">The size of the image in pixels.</param>
|
||||
|
/// <param name="metaData">The images metadata.</param>
|
||||
|
internal BmpInfo(PixelTypeInfo pixelType, Size size, ImageMetaData metaData) |
||||
|
: base(pixelType, size, metaData) |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,33 @@ |
|||||
|
// Copyright (c) Six Labors and contributors.
|
||||
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
|
||||
|
using SixLabors.ImageSharp.MetaData; |
||||
|
using SixLabors.Primitives; |
||||
|
|
||||
|
namespace SixLabors.ImageSharp.Formats.Gif |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Contains information about the bmp including dimensions, pixel type information and additional metadata.
|
||||
|
/// </summary>
|
||||
|
public class GifInfo : ImageInfo |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Initializes a new instance of the <see cref="GifInfo" /> class.
|
||||
|
/// </summary>
|
||||
|
/// <param name="colorTableMode">The color table mode.</param>
|
||||
|
/// <param name="pixelType">The image pixel type information.</param>
|
||||
|
/// <param name="size">The size of the image in pixels.</param>
|
||||
|
/// <param name="metaData">The images metadata.</param>
|
||||
|
internal GifInfo( |
||||
|
GifColorTableMode colorTableMode, |
||||
|
PixelTypeInfo pixelType, |
||||
|
Size size, |
||||
|
ImageMetaData metaData) |
||||
|
: base(pixelType, size, metaData) => this.ColorTableMode = colorTableMode; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Gets the color table mode.
|
||||
|
/// </summary>
|
||||
|
public GifColorTableMode ColorTableMode { get; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
// Copyright (c) Six Labors and contributors.
|
||||
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
|
||||
|
using SixLabors.ImageSharp.MetaData; |
||||
|
using SixLabors.Primitives; |
||||
|
|
||||
|
namespace SixLabors.ImageSharp.Formats.Jpeg |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Contains information about the bmp including dimensions, pixel type information and additional metadata.
|
||||
|
/// </summary>
|
||||
|
public class JpegInfo : ImageInfo |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Initializes a new instance of the <see cref="JpegInfo" /> class.
|
||||
|
/// </summary>
|
||||
|
/// <param name="pixelType">The image pixel type information.</param>
|
||||
|
/// <param name="size">The size of the image in pixels.</param>
|
||||
|
/// <param name="metaData">The images metadata.</param>
|
||||
|
internal JpegInfo(PixelTypeInfo pixelType, Size size, ImageMetaData metaData) |
||||
|
: base(pixelType, size, metaData) |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
// Copyright (c) Six Labors and contributors.
|
||||
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
|
||||
|
using SixLabors.ImageSharp.MetaData; |
||||
|
using SixLabors.Primitives; |
||||
|
|
||||
|
namespace SixLabors.ImageSharp.Formats.Png |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Contains information about the bmp including dimensions, pixel type information and additional metadata.
|
||||
|
/// </summary>
|
||||
|
public class PngInfo : ImageInfo |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Initializes a new instance of the <see cref="PngInfo" /> class.
|
||||
|
/// </summary>
|
||||
|
/// <param name="pixelType">The image pixel type information.</param>
|
||||
|
/// <param name="size">The size of the image in pixels.</param>
|
||||
|
/// <param name="metaData">The images metadata.</param>
|
||||
|
internal PngInfo(PixelTypeInfo pixelType, Size size, ImageMetaData metaData) |
||||
|
: base(pixelType, size, metaData) |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
After Width: | Height: | Size: 444 KiB |
Loading…
Reference in new issue