'Declaration
Public Function LoadFromFile( _ ByVal FilePath As String, _ Optional ByVal DocumentFormat As DocumentFormat _ ) As GdPictureStatus
public GdPictureStatus LoadFromFile( string FilePath, DocumentFormat DocumentFormat )
public function LoadFromFile( FilePath: String; DocumentFormat: DocumentFormat ): GdPictureStatus;
public function LoadFromFile( FilePath : String, DocumentFormat : DocumentFormat ) : GdPictureStatus;
public: GdPictureStatus LoadFromFile( string* FilePath, DocumentFormat DocumentFormat )
public: GdPictureStatus LoadFromFile( String^ FilePath, DocumentFormat DocumentFormat )
Parameters
- FilePath
- The file path of the source document.
- DocumentFormat
- A member of the DocumentFormat enumeration. Specifies a file format of the input document. Supported input document formats are listed here .
You can use a value of GdPicture14.DocumentFormat.DocumentFormatUNKNOWN if you are not sure about the document's format.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.