Spread ASP.NET 14
FarPoint.Web.Chart Assembly / FarPoint.Web.Chart Namespace / ImageType Enumeration
Example Example


In This Topic
    ImageType Enumeration
    In This Topic
    Specifies the format of the output image.
    Syntax
    'Declaration
     
    Public Enum ImageType 
       Inherits System.Enum
    'Usage
     
    Dim instance As ImageType
    public enum ImageType : System.Enum 
    Members
    MemberDescription
    GifGraphics Interchange Format (GIF) image format.
    JpegJoint Photographic Experts Group (JPEG) image format.
    PngW3C Portable Network Graphics (PNG) image format.
    Example
    This example uses the ImageType enumeration.
    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"
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Web.Chart.ImageType

    See Also