Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > ImageViewer Class : GetItemImageSize Method |
public LeadSize GetItemImageSize( ImageViewerItem item, bool useDpi )
'Declaration
Public Function GetItemImageSize( _ ByVal item As ImageViewerItem, _ ByVal useDpi As Boolean _ ) As LeadSize
Each ImageViewerItem can have a ImageViewerItem.Resolution value that can be used to set the resolution (in dots per inch, or DPI) of the item. When the value of the DPI is different than the screen resolution and the viewer is instructed to view items using the true logical size (using UseDpi then the viewer will add the scaling required into the image transformation.