Browse Source

Update ExifProfile.cs

pull/2946/head
James Jackson-South 8 months ago
parent
commit
2715f0ecb9
  1. 2
      src/ImageSharp/Metadata/Profiles/Exif/ExifProfile.cs

2
src/ImageSharp/Metadata/Profiles/Exif/ExifProfile.cs

@ -323,7 +323,7 @@ public sealed class ExifProfile : IDeepCloneable<ExifProfile>
// Ensure the point is within the image dimensions.
point = Vector2.Clamp(point, Vector2.Zero, new Vector2(width - 1, height - 1));
// Round the point to the nearest pixel.
// Floor the point to the nearest pixel.
location.Value[0] = (ushort)Math.Floor(point.X);
location.Value[1] = (ushort)Math.Floor(point.Y);

Loading…
Cancel
Save