Spread for ASP.NET 8.0 Product Documentation
JpegQuality Property
Example 


Gets or sets the image quality of the FpChart control when the ChartImageType is ImageType.Jpeg.
Syntax
'Declaration
 
Public Overridable Property JpegQuality As Integer
'Usage
 
Dim instance As FpChart
Dim value As Integer
 
instance.JpegQuality = value
 
value = instance.JpegQuality
public virtual int JpegQuality {get; set;}
Remarks
The percentage value that indicates the image quality. The default value is 100.
Example
This example uses the JpegQuality property.
this.FpChart1.ImageRender = new FarPoint.Web.Chart.FileImageRender();
FpChart1.ChartImageType = FarPoint.Web.Chart.ImageType.Jpeg;
FpChart1.JpegQuality = 98;
FarPoint.Web.Chart.FileImageRender fileImageRender = this.FpChart1.ImageRender as FarPoint.Web.Chart.FileImageRender;
fileImageRender.ImageUrl = "test.jpg";
Me.FpChart1.ImageRender = New FarPoint.Web.Chart.FileImageRender()
FpChart1.ChartImageType = FarPoint.Web.Chart.ImageType.Jpeg
FpChart1.JpegQuality = 98
Dim fileImageRender As FarPoint.Web.Chart.FileImageRender = TryCast(Me.FpChart1.ImageRender, FarPoint.Web.Chart.FileImageRender)
fileImageRender.ImageUrl = "test.jpg"
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

FpChart Class
FpChart Members

 

 


Copyright © GrapeCity, inc. All rights reserved.