Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / ScaleBitmap Method
The original Bitmap.
The specified scale factor.
The Bitmap processing that would manipulate the Bitmap before scaling.
The Bitmap processing that would manipulate the Bitmap after scaling.


In This Topic
    ScaleBitmap Method
    In This Topic
    Scale the original Bitmap with the specified scale factor.
    Syntax
    'Declaration
     
    
    Public Shared Function ScaleBitmap( _
       ByVal originalBitmap As Bitmap, _
       ByVal scaleFactor As Single, _
       ByVal prescaleProcessing As IBitmapProcessing, _
       ByVal postscaleProcessing As IBitmapProcessing _
    ) As Bitmap
    'Usage
     
    
    Dim originalBitmap As Bitmap
    Dim scaleFactor As Single
    Dim prescaleProcessing As IBitmapProcessing
    Dim postscaleProcessing As IBitmapProcessing
    Dim value As Bitmap
     
    value = DPIUtils.ScaleBitmap(originalBitmap, scaleFactor, prescaleProcessing, postscaleProcessing)

    Parameters

    originalBitmap
    The original Bitmap.
    scaleFactor
    The specified scale factor.
    prescaleProcessing
    The Bitmap processing that would manipulate the Bitmap before scaling.
    postscaleProcessing
    The Bitmap processing that would manipulate the Bitmap after scaling.

    Return Value

    The scaled Bitmap.
    See Also