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

resolution
The value to validate.
throwException
If true, an exception is thrown if the value is not valid.
Determines if the provided value is a valid image resolution; if the "throwException" parameter is true then an Exception is thrown if the value is not valid.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ValidateResolution( _
   ByVal resolution As Single, _
   ByVal throwException As Boolean _
) As Boolean
C#  
public static bool ValidateResolution( 
   float resolution,
   bool throwException
)

Parameters

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

Return Value

true if the value is a valid image resolution; otherwise, false.

Exceptions

Exception Description
System.Exception The image resolution 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.