Skip to content

How are print dimensions calculated in UV Tools (not sure if this should be a bug report) #684

Answered by sn4k3
cunabula27 asked this question in Q&A
Discussion options

You must be logged in to vote

Most likely is a rounding, calculation can be found here:

/// <summary>
/// Gets the pixel width in millimeters
/// </summary>
public float PixelWidth => DisplayWidth > 0 && ResolutionX > 0 ? (float) Math.Round(DisplayWidth / ResolutionX, 3) : 0;
/// <summary>
/// Gets the pixel height in millimeters
/// </summary>
public float PixelHeight => DisplayHeight > 0 && ResolutionY > 0 ? (float) Math.Round(DisplayHeight / ResolutionY, 3) : 0;
/// <summary>
/// Gets the pixel size in millimeters
/// </summary>
public SizeF PixelSize => new(Pixel…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sn4k3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants