LEADTOOLS JPEG 2000 (Leadtools.Jpip.Client.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
GetResolutionSize Method
See Also 
Leadtools.Jpip.Client.WinForms Namespace > JpipRasterImageViewer Class : GetResolutionSize Method



resolution
Resolution index

The GetResolutionSize Method includes members that are available as an add-on to the LEADTOOLS Imaging Pro, Document, and Medical Imaging toolkits.

resolution
Resolution index
Gets the size of a particular resolution.

Syntax

Visual Basic (Declaration) 
Public Function GetResolutionSize( _
   ByVal resolution As Integer _
) As LeadSize
Visual Basic (Usage)Copy Code
Dim instance As JpipRasterImageViewer
Dim resolution As Integer
Dim value As LeadSize
 
value = instance.GetResolutionSize(resolution)
C# 
public LeadSize GetResolutionSize( 
   int resolution
)
C++/CLI 
public:
LeadSize GetResolutionSize( 
   int resolution
) 

Parameters

resolution
Resolution index

Return Value

A Leadtools.LeadSize value that represents the resolution.

Example

This example enumerates all of the available resolution sizes for the loaded image. For an example, refer to JpipRasterImageViewer.

Remarks

A resolution index equal to zero represents the highest resolution and the NumberOfResolutions represents the lowest resolution. So if the NumberOfResolutions equals 3 and the image size is 200x100, then this function will return 200x100 when the resolution index equals zero, 100x50 when the resolution index equals 1, and 50x25 when the resolution index equals 2.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Jpip.Client.WinForms requires a JPIP Module and a server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features