Nevron .NET Vision Documentation
CreatePreview Method

Generates a preview bitmap of this appearance style with the specified dimensions.
Public Function CreatePreview( _
   ByVal size As NSize, _
   ByVal frameStrokeStyle As NStrokeStyle _
) As System.Drawing.Bitmap
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



Return Value

The function returns a Bitmap object containing the appearance style preview.
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.

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


NAppearanceStyle Class
NAppearanceStyle Members

Send Feedback