Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Graphics/src/Graphics/AbstractPattern.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ public abstract class AbstractPattern : IPattern
/// Gets the width of the pattern.
/// </summary>
public float Width { get; }

/// <summary>
/// Gets the height of the pattern.
/// </summary>
public float Height { get; }

/// <summary>
/// Gets the horizontal step size for repeating the pattern.
/// </summary>
public float StepX { get; }

/// <summary>
/// Gets the vertical step size for repeating the pattern.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Graphics/src/Graphics/BitmapExportContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public abstract class BitmapExportContext : IDisposable
/// Gets the width of the bitmap in pixels.
/// </summary>
public int Width { get; }

/// <summary>
/// Gets the height of the bitmap in pixels.
/// </summary>
public int Height { get; }

/// <summary>
/// Gets the resolution (dots per inch) of the bitmap.
/// </summary>
Expand Down
54 changes: 27 additions & 27 deletions src/Graphics/src/Graphics/BlendMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,137 +9,137 @@ public enum BlendMode
/// Normal blending mode which simply draws the source over the destination.
/// </summary>
Normal,

/// <summary>
/// Multiplies the colors of the source with the destination, resulting in a darker image.
/// </summary>
Multiply,

/// <summary>
/// Multiplies the complements of the source and destination colors, then complements the result, resulting in a lighter image.
/// </summary>
Screen,

/// <summary>
/// Multiplies or screens the colors depending on the destination color, preserving highlights and shadows.
/// </summary>
Overlay,

/// <summary>
/// Selects the darker of the source and destination colors for each pixel.
/// </summary>
Darken,

/// <summary>
/// Selects the lighter of the source and destination colors for each pixel.
/// </summary>
Lighten,

/// <summary>
/// Brightens the destination color to reflect the source color, resulting in a lighter image.
/// </summary>
ColorDodge,

/// <summary>
/// Darkens the destination color to reflect the source color, resulting in a darker image.
/// </summary>
ColorBurn,

/// <summary>
/// Darkens or lightens the colors depending on the source color, creating a subtle effect.
/// </summary>
SoftLight,

/// <summary>
/// Similar to overlay but with source and destination reversed, creating a more dramatic effect.
/// </summary>
HardLight,

/// <summary>
/// Subtracts the darker of the two colors from the lighter color, creating an inverted effect.
/// </summary>
Difference,

/// <summary>
/// Similar to difference but with lower contrast, resulting in a more muted effect.
/// </summary>
Exclusion,

/// <summary>
/// Preserves the hue of the source color while using the saturation and luminosity of the destination.
/// </summary>
Hue,

/// <summary>
/// Preserves the saturation of the source color while using the hue and luminosity of the destination.
/// </summary>
Saturation,

/// <summary>
/// Preserves the hue and saturation of the source color while using the luminosity of the destination.
/// </summary>
Color,

/// <summary>
/// Preserves the luminosity of the source color while using the hue and saturation of the destination.
/// </summary>
Luminosity,

/// <summary>
/// Clears the destination area, making it fully transparent.
/// </summary>
Clear,

/// <summary>
/// Copies the source over the destination, ignoring the destination.
/// </summary>
Copy,

/// <summary>
/// Shows the source where both the source and destination overlap, otherwise displays transparency.
/// </summary>
SourceIn,

/// <summary>
/// Shows the source where it doesn't overlap with the destination, otherwise displays transparency.
/// </summary>
SourceOut,

/// <summary>
/// Shows the source where it overlaps with non-transparent parts of the destination.
/// </summary>
SourceAtop,

/// <summary>
/// Shows the destination over the source.
/// </summary>
DestinationOver,

/// <summary>
/// Shows the destination where both the source and destination overlap, otherwise displays transparency.
/// </summary>
DestinationIn,

/// <summary>
/// Shows the destination where it doesn't overlap with the source, otherwise displays transparency.
/// </summary>
DestinationOut,

/// <summary>
/// Shows the destination where it overlaps with non-transparent parts of the source.
/// </summary>
DestinationAtop,

/// <summary>
/// Shows the source where it doesn't overlap with the destination and shows the destination where it doesn't overlap with the source.
/// </summary>
Xor,

/// <summary>
/// Adds the source and destination colors, favoring darker results.
/// </summary>
PlusDarker,

/// <summary>
/// Adds the source and destination colors, favoring lighter results.
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions src/Graphics/src/Graphics/CanvasDefaults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ public static class CanvasDefaults
/// The default shadow color, which is black with 50% opacity.
/// </summary>
public static readonly Color DefaultShadowColor = new Color(0f, 0f, 0f, .5f);

/// <summary>
/// The default shadow offset, which is 5 units in both x and y directions.
/// </summary>
public static readonly SizeF DefaultShadowOffset = new SizeF(5, 5);

/// <summary>
/// The default shadow blur value, which is 5.
/// </summary>
public const float DefaultShadowBlur = 5;

/// <summary>
/// The default miter limit value, which is 10.
/// </summary>
Expand Down
10 changes: 5 additions & 5 deletions src/Graphics/src/Graphics/CanvasState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public class CanvasState : IDisposable
/// Gets or sets the pattern of dashes and gaps used to stroke paths.
/// </summary>
public float[] StrokeDashPattern { get; set; }

/// <summary>
/// Gets or sets the distance into the dash pattern to start the dash.
/// </summary>
public float StrokeDashOffset { get; set; } = 1;

/// <summary>
/// Gets or sets the width of the stroke used to draw an object's outline.
/// </summary>
Expand All @@ -44,17 +44,17 @@ public Matrix3x2 Transform
TransformChanged();
}
}

/// <summary>
/// Gets the uniform scale factor derived from the transformation matrix.
/// </summary>
public float Scale => this._scale;

/// <summary>
/// Gets the horizontal scale factor derived from the transformation matrix.
/// </summary>
public float ScaleX => this._scaleX;

/// <summary>
/// Gets the vertical scale factor derived from the transformation matrix.
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions src/Graphics/src/Graphics/Color.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ public class Color
/// The red component of the color, ranging from 0.0 to 1.0.
/// </summary>
public readonly float Red;

/// <summary>
/// The green component of the color, ranging from 0.0 to 1.0.
/// </summary>
public readonly float Green;

/// <summary>
/// The blue component of the color, ranging from 0.0 to 1.0.
/// </summary>
public readonly float Blue;

/// <summary>
/// The alpha (opacity) component of the color, ranging from 0.0 (transparent) to 1.0 (opaque).
/// </summary>
Expand Down
36 changes: 18 additions & 18 deletions src/Graphics/src/Graphics/Font.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,82 +16,82 @@ public static class FontWeights
/// Represents a thin font weight (100).
/// </summary>
public const int Thin = 100;

/// <summary>
/// Represents an extra light font weight (200).
/// </summary>
public const int ExtraLight = 200;

/// <summary>
/// Represents an ultra light font weight (200), equivalent to ExtraLight.
/// </summary>
public const int UltraLight = 200;

/// <summary>
/// Represents a light font weight (300).
/// </summary>
public const int Light = 300;

/// <summary>
/// Represents a semi-light font weight (400), equivalent to Normal.
/// </summary>
public const int SemiLight = 400;

/// <summary>
/// Represents a normal font weight (400).
/// </summary>
public const int Normal = 400;

/// <summary>
/// Represents a regular font weight (400), equivalent to Normal.
/// </summary>
public const int Regular = 400;

/// <summary>
/// Represents a medium font weight (500).
/// </summary>
public const int Medium = 500;

/// <summary>
/// Represents a demi-bold font weight (600), equivalent to SemiBold.
/// </summary>
public const int DemiBold = 600;

/// <summary>
/// Represents a semi-bold font weight (600).
/// </summary>
public const int SemiBold = 600;

/// <summary>
/// Represents a bold font weight (700).
/// </summary>
public const int Bold = 700;

/// <summary>
/// Represents an extra bold font weight (800).
/// </summary>
public const int ExtraBold = 800;

/// <summary>
/// Represents an ultra bold font weight (800), equivalent to ExtraBold.
/// </summary>
public const int UltraBold = 800;

/// <summary>
/// Represents a black font weight (900).
/// </summary>
public const int Black = 900;

/// <summary>
/// Represents a heavy font weight (900), equivalent to Black.
/// </summary>
public const int Heavy = 900;

/// <summary>
/// Represents an extra black font weight (950).
/// </summary>
public const int ExtraBlack = 950;

/// <summary>
/// Represents an ultra black font weight (950), equivalent to ExtraBlack.
/// </summary>
Expand Down Expand Up @@ -132,12 +132,12 @@ public Font(string name, int weight = FontWeights.Normal, FontStyleType styleTyp
/// Gets the font name or family.
/// </summary>
public string Name { get; private set; }

/// <summary>
/// Gets the font weight.
/// </summary>
public int Weight { get; private set; }

/// <summary>
/// Gets the font style type.
/// </summary>
Expand Down
Loading