Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class
Properties Methods


In This Topic
    DPIUtils Class Members
    In This Topic

    The following tables list the members exposed by DPIUtils.

    Public Constructors
     NameDescription
    Public Constructor  
    Top
    Public Properties
     NameDescription
    Public Propertystatic (Shared in Visual Basic)Get the current DPI of the application environement.  
    Public Propertystatic (Shared in Visual Basic)  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Overloaded. Get the specified scale Bitmap of specified Bitmap resource. The result Bitmap is scaled from the existing versions of the Bitmap resource of all DPI supporting scale versions (see GetDPISupportingScaleFactor).  
    Public Methodstatic (Shared in Visual Basic)Get the array of scale factors that corresspond to the supporting DPIs.  
    Public Methodstatic (Shared in Visual Basic)Get the list of existing scale versions of specified resource from the array of request scale versions.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Gets the icon from the specified resource.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Get the specified scale Image of specified Image resource. The result Image is scaled from the existing versions of the Image resource of all DPI supporting scale versions (see GetDPISupportingScaleFactor(void)).  
    Public Methodstatic (Shared in Visual Basic)Get the path of scale versions from original path (1x version) of a specified resource. Note: The rule to form the path of scale version from original path (1x version) of a specified resource is: Add the ".(scaleFactor)x" to right before the "." that start the file extension. For example: 1.5x version of D:\abc.png is D:\abc.1.5x.png.  
    Public Methodstatic (Shared in Visual Basic)Get the Stream of the specified resource.  
    Public Methodstatic (Shared in Visual Basic)Check if the specified resource exists in the specified assembly. If the specified assembly is null, check if the file specified by

    resourcePath

    exists.  
    Public Methodstatic (Shared in Visual Basic)Scale the original Bitmap with the specified scale factor.  
    Top
    See Also