Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / RawImage Class / FromFile Method
The image file name.
The format of the image.
The width of the image in pixels.
The height of the image in pixels.
The horizontal resolution.
The vertical resolution.

In This Topic
    FromFile Method (RawImage)
    In This Topic
    Creates a new instance of the RawImage class from a disk file, RawImage supports only JPEG or JPEG2000 image formats.
    Syntax
    'Declaration
     
    Public Shared Function FromFile( _
       ByVal fileName As System.String, _
       ByVal format As RawImageFormat, _
       ByVal width As System.Integer, _
       ByVal height As System.Integer, _
       Optional ByVal horizontalResolution As System.Single, _
       Optional ByVal verticalResolution As System.Single _
    ) As RawImage
    public static RawImage FromFile( 
       System.string fileName,
       RawImageFormat format,
       System.int width,
       System.int height,
       System.float horizontalResolution,
       System.float verticalResolution
    )

    Parameters

    fileName
    The image file name.
    format
    The format of the image.
    width
    The width of the image in pixels.
    height
    The height of the image in pixels.
    horizontalResolution
    The horizontal resolution.
    verticalResolution
    The vertical resolution.
    See Also