I feel silly asking such a basic question after so long using .NET but I cannot find anything in the docs.
Is there any sort of integer-based analog to the System.Windows.Size
struct that is standard in .NET? Something that holds integers instead of doubles?
Obviously I can
- roll my own
- pass integer width/height sizes separately
- pass
System.Windows.Size
and cast back and forth.
But I am surprised I cannot find something so fundamental already defined. If it exists, I would prefer to use that.
CodePudding user response:
System.Drawing.Size uses int32 for the height and width properties.