Nevron .NET Vision
Nevron.Chart Namespace / NSettings Class / RenderSurface Property
Example


In This Topic
    RenderSurface Property (NSettings)
    In This Topic
    Whether or not to render the chart to a bitmap or use a double buffer window.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("Whether or not to render the chart to a bitmap or use a double buffer window.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property RenderSurface As RenderSurface
    'Usage
     
    
    Dim instance As NSettings
    Dim value As RenderSurface
     
    instance.RenderSurface = value
     
    value = instance.RenderSurface
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("Whether or not to render the chart to a bitmap or use a double buffer window.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    [System.Xml.Serialization.XmlAttribute()]
    public RenderSurface RenderSurface {get; set;}
    Remarks
    OpenGL supports rendering in a GDI bitmap or Win32 window specially configured for OpenGL rendering. In Window mode the chart will automatically leverage the video board 3D acceleration. Because it is not guaranteed that the video drivers are up to date, the control uses by the default the slower but more robust mode � GDI bitmap. You may instruct the chart to render to a window at any time by setting the RenderToBitmap property to false.
    Example
    The following code will configure the chart to create a window render surface.
    NChartControl1.Settings.RenderToBitmap = False
    NChartControl1.Settings.RenderSurface = RenderSurface.Window;
    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