CodeCarvings.Piczard
ValidateImageSize(Size,Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard.Helpers Namespace > ImageHelper Class > ValidateImageSize Method : ValidateImageSize(Size,Boolean) Method

value
The Size to validate.
throwException
If true, an exception is thrown if the Size is not valid.
Determines whether a specified Size is valid against the current MaxImageSize setting - and - (optionally) raise an exception if the Size is not valid.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ValidateImageSize( _
   ByVal value As Size, _
   ByVal throwException As Boolean _
) As Boolean
C#  
public static bool ValidateImageSize( 
   Size value,
   bool throwException
)

Parameters

value
The Size to validate.
throwException
If true, an exception is thrown if the Size is not valid.

Return Value

true if the Size is valid.

Exceptions

Exception Description
InvalidImageSizeException The provided image size is not valid.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.