Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
Legend items appear blurry or clipped when rendering to a window
Legend items appear blurry or clipped when rendering to a window
Post Reply
Legend items appear blurry or clipped when rendering to a window
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Lance Levendowski
Lance Levendowski
posted 9 Years Ago
ANSWER
HOT
Topic Details
Group: Forum Members
Posts: 60,
Visits: 157
Legend items can appear blurry or clipped when NChartControl.Settings.RenderSurface = window.
Can this be prevented?
Run the following example to reproduce the issue. Notice that the clipping of text in the legend depends on the size of the NChartControl.
Public Class LegendForm
Inherits Windows.Forms.Form
Private _ChartControl1 As Nevron.Chart.WinForm.NChartControl
Private WithEvents _CheckBox1 As Windows.Forms.CheckBox
Public Sub New()
Call InitializeControls()
End Sub
Private Sub InitializeControls()
Me.Size = New Drawing.Size(640, 392)
Me.StartPosition = FormStartPosition.CenterScreen
Dim lowResolutionDataSize As New Drawing.Size(20, 20)
Dim highResolutionDataSize As New Drawing.Size(255, 255)
Const renderSurface As Nevron.GraphicsCore.RenderSurface = Nevron.GraphicsCore.RenderSurface.Window
Const shadingMode As Nevron.Chart.ShadingMode = Nevron.Chart.ShadingMode.Smooth
Const triangulationMode As Nevron.Chart.MeshSurfaceCellTriangulationMode = Nevron.Chart.MeshSurfaceCellTriangulationMode.MaxDiagonal
Dim chartBounds As New Drawing.Rectangle(0, 0, Me.ClientSize.Width, Me.ClientSize.Height - 24)
Me._ChartControl1 = Tools.CreateChartControlWithMeshSurface(Me, "Low Res ZoneTexture", chartBounds, True, renderSurface, shadingMode, triangulationMode, lowResolutionDataSize)
Me._ChartControl1.Anchor = AnchorStyles.Left Or AnchorStyles.Top Or AnchorStyles.Right Or AnchorStyles.Bottom
Me._CheckBox1 = New Windows.Forms.CheckBox
Me._CheckBox1.Text = "Render to Window"
Me._CheckBox1.Location = New Drawing.Point(0, Me._ChartControl1.Bottom)
Me._CheckBox1.AutoSize = True
Me._CheckBox1.Anchor = AnchorStyles.Left Or AnchorStyles.Bottom
Me._CheckBox1.Checked = (Me._ChartControl1.Settings.RenderSurface = Nevron.GraphicsCore.RenderSurface.Window)
Me.Controls.Add(Me._CheckBox1)
End Sub
Private Sub _CheckBox1_CheckedChanged(sender As Object, e As System.EventArgs) Handles _CheckBox1.CheckedChanged
If (Me._CheckBox1.Checked) Then
Me._ChartControl1.Settings.RenderSurface = Nevron.GraphicsCore.RenderSurface.Window
Else
Me._ChartControl1.Settings.RenderSurface = Nevron.GraphicsCore.RenderSurface.Bitmap
End If
End Sub
End Class
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Legend items appear blurry or clipped when rendering to a window
Lance Levendowski
-
9 Years Ago
Hi Lance, We could not replicate the problem using the provided code...
Nevron Support
-
9 Years Ago
Please try my example using a DPI setting of 125% and let me know if...
Lance Levendowski
-
9 Years Ago
Hi Lance, In order to be printable most chart properties related to...
Nevron Support
-
9 Years Ago
Thank you for the feedback. I tried setting the BorderStyle.Width...
Lance Levendowski
-
9 Years Ago
Hi Lance, We still cannot reproduce this problem - we tested with...
Nevron Support
-
9 Years Ago
The issue exists in builds 16.4.15.12 and 16.5.9.12. System Specs:...
Lance Levendowski
-
9 Years Ago
Hi Lance, This issue is most likely related to the video board as we...
Nevron Support
-
9 Years Ago
You are correct that this issue seems to be dependent on the video...
Lance Levendowski
-
9 Years Ago
Can you please give me an update on this issue? Thank you.
Lance Levendowski
-
9 Years Ago
Hi Lance, We don't have any of the problematic video boards here- the...
Nevron Support
-
9 Years Ago
Thanks for the feedback. I doubt you'll have issues with the Radeon R9...
Lance Levendowski
-
9 Years Ago
Hi Lance, We tested on an older Nvidia GeForce (650 Ti) and...
Nevron Support
-
9 Years Ago
Thanks for the update and for testing it with a GeForce. Did you try...
Lance Levendowski
-
9 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search