Browse Source

Update xmldoc

af/merge-core
Anton Firszov 8 years ago
parent
commit
7ab13d5059
  1. 36
      src/ImageSharp/PixelFormats/IPixel.cs
  2. 2
      src/ImageSharp/PixelFormats/PixelOperations{TPixel}.cs

36
src/ImageSharp/PixelFormats/IPixel.cs

@ -24,93 +24,93 @@ namespace SixLabors.ImageSharp.PixelFormats
} }
/// <summary> /// <summary>
/// An interface that represents a pixel type. /// A base interface for all pixels, defining the mandatory operations to be implemented by a pixel type.
/// </summary> /// </summary>
public interface IPixel public interface IPixel
{ {
/// <summary> /// <summary>
/// Sets the packed representation from a scaled <see cref="Vector4"/>. /// Initializes the pixel instance from a generic ("scaled") <see cref="Vector4"/>.
/// </summary> /// </summary>
/// <param name="vector">The vector to create the packed representation from.</param> /// <param name="vector">The vector to load the pixel from.</param>
void FromScaledVector4(Vector4 vector); void FromScaledVector4(Vector4 vector);
/// <summary> /// <summary>
/// Expands the packed representation into a scaled <see cref="Vector4"/> /// Expands the pixel into a generic ("scaled") <see cref="Vector4"/> representation
/// with values clamped between <value>0</value> and <value>1</value>. /// with values scaled and clamped between <value>0</value> and <value>1</value>.
/// The vector components are typically expanded in least to greatest significance order. /// The vector components are typically expanded in least to greatest significance order.
/// </summary> /// </summary>
/// <returns>The <see cref="Vector4"/>.</returns> /// <returns>The <see cref="Vector4"/>.</returns>
Vector4 ToScaledVector4(); Vector4 ToScaledVector4();
/// <summary> /// <summary>
/// Sets the packed representation from a <see cref="Vector4"/>. /// Initializes the pixel instance from a <see cref="Vector4"/> which is specific to the current pixel type.
/// </summary> /// </summary>
/// <param name="vector">The vector to create the packed representation from.</param> /// <param name="vector">The vector to load the pixel from.</param>
void FromVector4(Vector4 vector); void FromVector4(Vector4 vector);
/// <summary> /// <summary>
/// Expands the packed representation into a <see cref="Vector4"/>. /// Expands the pixel into a <see cref="Vector4"/> which is specific to the current pixel type.
/// The vector components are typically expanded in least to greatest significance order. /// The vector components are typically expanded in least to greatest significance order.
/// </summary> /// </summary>
/// <returns>The <see cref="Vector4"/>.</returns> /// <returns>The <see cref="Vector4"/>.</returns>
Vector4 ToVector4(); Vector4 ToVector4();
/// <summary> /// <summary>
/// Packs the pixel from an <see cref="Argb32"/> value. /// Initializes the pixel instance from an <see cref="Argb32"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Argb32"/> value.</param> /// <param name="source">The <see cref="Argb32"/> value.</param>
void FromArgb32(Argb32 source); void FromArgb32(Argb32 source);
/// <summary> /// <summary>
/// Packs the pixel from an <see cref="Bgr24"/> value. /// Initializes the pixel instance from an <see cref="Bgr24"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Bgr24"/> value.</param> /// <param name="source">The <see cref="Bgr24"/> value.</param>
void FromBgr24(Bgr24 source); void FromBgr24(Bgr24 source);
/// <summary> /// <summary>
/// Packs the pixel from an <see cref="Bgra32"/> value. /// Initializes the pixel instance from an <see cref="Bgra32"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Bgra32"/> value.</param> /// <param name="source">The <see cref="Bgra32"/> value.</param>
void FromBgra32(Bgra32 source); void FromBgra32(Bgra32 source);
/// <summary> /// <summary>
/// Packs the Pixel from an <see cref="Gray8"/> value. /// Initializes the pixel instance from an <see cref="Gray8"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Gray8"/> value.</param> /// <param name="source">The <see cref="Gray8"/> value.</param>
void FromGray8(Gray8 source); void FromGray8(Gray8 source);
/// <summary> /// <summary>
/// Packs the Pixel from an <see cref="Gray16"/> value. /// Initializes the pixel instance from an <see cref="Gray16"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Gray16"/> value.</param> /// <param name="source">The <see cref="Gray16"/> value.</param>
void FromGray16(Gray16 source); void FromGray16(Gray16 source);
/// <summary> /// <summary>
/// Packs the pixel from an <see cref="Rgb24"/> value. /// Initializes the pixel instance from an <see cref="Rgb24"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Rgb24"/> value.</param> /// <param name="source">The <see cref="Rgb24"/> value.</param>
void FromRgb24(Rgb24 source); void FromRgb24(Rgb24 source);
/// <summary> /// <summary>
/// Packs the pixel from an <see cref="Rgba32"/> value. /// Initializes the pixel instance from an <see cref="Rgba32"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Rgba32"/> value.</param> /// <param name="source">The <see cref="Rgba32"/> value.</param>
void FromRgba32(Rgba32 source); void FromRgba32(Rgba32 source);
/// <summary> /// <summary>
/// Expands the packed representation into an <see cref="Rgba32"/>. /// Convert the pixel instance into <see cref="Rgba32"/> representation.
/// </summary> /// </summary>
/// <param name="dest">The reference to the destination <see cref="Rgba32"/> pixel</param> /// <param name="dest">The reference to the destination <see cref="Rgba32"/> pixel</param>
void ToRgba32(ref Rgba32 dest); void ToRgba32(ref Rgba32 dest);
/// <summary> /// <summary>
/// Packs the pixel from an <see cref="Rgb48"/> value. /// Initializes the pixel instance from an <see cref="Rgb48"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Rgb48"/> value.</param> /// <param name="source">The <see cref="Rgb48"/> value.</param>
void FromRgb48(Rgb48 source); void FromRgb48(Rgb48 source);
/// <summary> /// <summary>
/// Packs the pixel from an <see cref="Rgba64"/> value. /// Initializes the pixel instance from an <see cref="Rgba64"/> value.
/// </summary> /// </summary>
/// <param name="source">The <see cref="Rgba64"/> value.</param> /// <param name="source">The <see cref="Rgba64"/> value.</param>
void FromRgba64(Rgba64 source); void FromRgba64(Rgba64 source);

2
src/ImageSharp/PixelFormats/PixelOperations{TPixel}.cs

@ -147,7 +147,7 @@ namespace SixLabors.ImageSharp.PixelFormats
return; return;
} }
// Normal converson // Normal conversion
ref TDestinationPixel destRef = ref MemoryMarshal.GetReference(destinationColors); ref TDestinationPixel destRef = ref MemoryMarshal.GetReference(destinationColors);
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)
{ {

Loading…
Cancel
Save