menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageResourceInfo

    Show / Hide Table of Contents

    Class ImageResourceInfo

    Inheritance
    System.Object
    ImageResourceInfo
    Implements
    IResourceInfo
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class ImageResourceInfo : IResourceInfo, IDisposable

    Constructors

    ImageResourceInfo(Image, ImageFormat, String)

    Initializes a new instance of the ImageResourceInfo class.

    Declaration
    public ImageResourceInfo(Image img, ImageFormat format, string parentGUID)
    Parameters
    Type Name Description
    System.Drawing.Image img

    Image instance.

    System.Drawing.Imaging.ImageFormat format

    Image format.

    System.String parentGUID

    Parent control id.

    ImageResourceInfo(Image, ImageFormat, String, Boolean, String)

    Initializes a new instance of the ImageResourceInfo class.

    Declaration
    public ImageResourceInfo(Image img, ImageFormat format, string resourceFilesPath, bool useResourceFromFiles, string parentGuid)
    Parameters
    Type Name Description
    System.Drawing.Image img

    Image instance.

    System.Drawing.Imaging.ImageFormat format

    Image format.

    System.String resourceFilesPath

    Audio audioFilesPath.

    System.Boolean useResourceFromFiles

    Audio useAudioFiles.

    System.String parentGuid

    parentGUID.

    ImageResourceInfo(Image, String)

    Initializes a new instance of the ImageResourceInfo class.

    Declaration
    public ImageResourceInfo(Image img, string parentId)
    Parameters
    Type Name Description
    System.Drawing.Image img

    Image instance.

    System.String parentId

    Parent control id.

    Properties

    ContentType

    Gets the HTTP MIME type of the output stream.

    Declaration
    public string ContentType { get; }
    Property Value
    Type Description
    System.String

    The content type.

    ControlGUID

    Gets Id of owner control.

    Declaration
    public string ControlGUID { get; }
    Property Value
    Type Description
    System.String

    The controlGUID.

    Extension

    Gets the file name extension of the Resource object.

    Declaration
    public string Extension { get; }
    Property Value
    Type Description
    System.String

    The extension.

    Id

    Gets Id of object.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    System.String

    The Id.

    Image

    Gets the image.

    Declaration
    public Image Image { get; }
    Property Value
    Type Description
    System.Drawing.Image

    The image.

    ResourceFilesPath

    Gets the Resources Files Path.

    Declaration
    public string ResourceFilesPath { get; }
    Property Value
    Type Description
    System.String

    The resource files path.

    UseResourcesFromFiles

    Gets the UseResourcesFromFiles.

    Declaration
    public bool UseResourcesFromFiles { get; }
    Property Value
    Type Description
    System.Boolean

    The user resources from files.

    Methods

    Dispose()

    Releases all resources;

    Declaration
    public void Dispose()

    GetResourceFilesPath()

    Specify the source files path

    Declaration
    public string GetResourceFilesPath()
    Returns
    Type Description
    System.String

    This method returns string value

    GetResourceFromFile()

    Specify the source from file

    Declaration
    public bool GetResourceFromFile()
    Returns
    Type Description
    System.Boolean

    This method returns boolean value

    WriteTo(Stream)

    Initializes a new instance of the StreamWriter class for the specified stream and write ImageFormat to the stream

    Declaration
    public void WriteTo(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream

    Implements

    IResourceInfo
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved