- useDpi
- true to take into account the resolution (DPI) of the image; false to ignore the DPI.
Visual Basic (Declaration) | |
---|---|
Public Function GetImageWidthDpi( _ ByVal useDpi As Boolean _ ) As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RasterImage Dim useDpi As Boolean Dim value As Integer value = instance.GetImageWidthDpi(useDpi) |
Parameters
- useDpi
- true to take into account the resolution (DPI) of the image; false to ignore the DPI.
Return Value
The width of this RasterImage in pixels, taking ViewPerspective and XResolution into account.Use Width to get the actual width of the image data scanlines.
For more information refer to Accounting For View Perspective.
Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7