NevronOpenVision
Nevron.Nov.Graphics Namespace / NDpiAwareImageSource Class / NDpiAwareImageSource Constructor / NDpiAwareImageSource Constructor(NImageSource,NSizeI)
The image source from which to extract frames.
The desired size of the image at 96 DPI.
In This Topic
    NDpiAwareImageSource Constructor(NImageSource,NSizeI)
    In This Topic
    Creates a DPI aware image source from the given multi-frame image source (usually an image source from an ICO file).
    Syntax
    public NDpiAwareImageSource( 
       NImageSource multiFrameImageSource,
       NSizeI defaultSize
    )

    Parameters

    multiFrameImageSource
    The image source from which to extract frames.
    defaultSize
    The desired size of the image at 96 DPI.
    Remarks
    This constructor extracts all frames from the given multi-frame image source, whose size is larger than or equal to the given desired size and automatically calculates the DPI for each frame. For example if the desired size is 16x16, the frame with size 24x24 will be used at 144 DPI (150% screen scaling), the frame with size 32x32 will be used at 192 DPI (200% screen scaling) and so on.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also