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

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

Syntax

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

Parameters

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

Return Value

true if the width is valid.

Exceptions

Exception Description
InvalidImageSizeException The provided image width 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.