Vixen
dd8b0a81
csharp
public readonly record struct ImageOverlaySegment

One line segment drawn over an image, in image space.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Texels, not UVs and not pixels. UVs would mean a UV island's outline was right and a brush's footprint was not — a paint stroke is measured in texels and a stroke expressed as a fraction would change shape on a non-square image. Screen pixels would mean every segment had to be recomputed on every pan and every zoom, which is exactly the arithmetic the control already does once.

Fields and properties (2)

  • public Vector2 From

    One end, in texels from the image's top-left corner.

  • public Vector2 To

    The other.

Methods (1)

  • public ImageOverlaySegment(Vector2 From, Vector2 To)

    One line segment drawn over an image, in image space.

Used by (3)

  • ImageViewVixen.Ui.Controls.Advanced
  • ImageViewTestsVixen.Ui.Controls.Advanced.Tests
  • PaintUvViewTestsVixen.Editor.Texturing.Tests