Click or drag to resize
SizeConstraint Methods

The SizeConstraint type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is a SizeConstraint structure with the same width, height and maximum width or height as this SizeConstraint structure.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns a hash code for this SizeConstraint structure.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberHeight
Creates a new size constraint that makes the image resize to the specified height. This constraint maintains the aspect ratio. The resized image is never made larger than the original.
Public methodStatic memberMaxWidthOrHeight
Creates a new size constraint that makes the image resize to the width and height that do not exceed the specified value. This constraint maintains the aspect ratio. The resized image is never made larger than the original.
Public methodStatic memberSize
Creates a new size constraint that makes the image resize to the specified width and height. This constraint does not maintain the aspect ratio. The resized image is never made larger than the original.
Public methodToString
Creates a human-readable string that represents this SizeConstraint structure.
(Overrides ValueTypeToString.)
Public methodStatic memberWidth
Creates a new size constraint that makes the image resize to the specified width. This constraint maintains the aspect ratio. The resized image is never made larger than the original.
Top
See Also