Relating SizeF to Inches

  • Thread starter Thread starter Seth Williams
  • Start date Start date
S

Seth Williams

I've got a DLL that's using System.Drawing.SizeF (width and height)

Since my users will be thinking in terms of Inches, how can I convert inches
to SizeF proportions?
 
Seth Williams said:
I've got a DLL that's using System.Drawing.SizeF (width and height)

Since my users will be thinking in terms of Inches, how can I convert
inches to SizeF proportions?

The unit of the value stored in a 'SizeF' structure is not defined. It
depends on where the value is used. If you are using it for drawing, it
depents on the 'PageUnit' and 'PageScale' properties of the 'Graphics'
object.
 
Seth Williams said:
Are there defaults for these (I'm certainly not defining them)?

No, it depends on where the value is used. Where do you obtain the 'SizeF'
value?
 
Back
Top