mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
// <copyright file="IPenApplicator.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageSharp.Drawing.Pens.Processors
|
|
{
|
|
using System;
|
|
using Paths;
|
|
|
|
/// <summary>
|
|
/// primitive that converts a <see cref="PointInfo"/> into a color and a distance away from the drawable part of the path.
|
|
/// </summary>
|
|
/// <typeparam name="TColor">The type of the color.</typeparam>
|
|
public interface IPenApplicator<TColor> : IDisposable
|
|
where TColor : struct, IPackedPixel, IEquatable<TColor>
|
|
{
|
|
/// <summary>
|
|
/// Gets the required region.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The required region.
|
|
/// </value>
|
|
RectangleF RequiredRegion { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a <see cref="ColoredPointInfo{TColor}" /> from a point represented by a <see cref="PointInfo" />.
|
|
/// </summary>
|
|
/// <param name="info">The information to extract color details about.</param>
|
|
/// <returns>Returns the color details and distance from a solid bit of the line.</returns>
|
|
ColoredPointInfo<TColor> GetColor(PointInfo info);
|
|
}
|
|
}
|
|
|