Nevron .NET Vision
Nevron.GraphicsCore Namespace / NAppearanceStyle Class / CreatePreview Method


In This Topic
    CreatePreview Method
    In This Topic
    Generates a preview bitmap of this appearance style with the specified dimensions.
    Syntax
    'Declaration
     
    
    Public Function CreatePreview( _
       ByVal size As NSize, _
       ByVal frameStrokeStyle As NStrokeStyle _
    ) As System.Drawing.Bitmap
    'Usage
     
    
    Dim instance As NAppearanceStyle
    Dim size As NSize
    Dim frameStrokeStyle As NStrokeStyle
    Dim value As System.Drawing.Bitmap
     
    value = instance.CreatePreview(size, frameStrokeStyle)
    public System.Drawing.Bitmap CreatePreview( 
       NSize size,
       NStrokeStyle frameStrokeStyle
    )

    Parameters

    size
    frameStrokeStyle

    Return Value

    The function returns a Bitmap object containing the appearance style preview.
    Remarks
    Note that the preview bitmap may actually differ from the visualized appearance because some properties like material, mapping and image filter properties are discarded. You can use this function to implement thumbnail preview in your applications. It is recommended to pass bitmaps with square dimensions in order achieve better quality.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also