'Declaration
Public Overloads Function CreateGdPictureImageFromFile( _ ByVal FilePath As String, _ ByVal LoadInMemory As Boolean _ ) As Integer
public int CreateGdPictureImageFromFile( string FilePath, bool LoadInMemory )
public function CreateGdPictureImageFromFile( FilePath: String; LoadInMemory: Boolean ): Integer;
public function CreateGdPictureImageFromFile( FilePath : String, LoadInMemory : boolean ) : int;
public: int CreateGdPictureImageFromFile( string* FilePath, bool LoadInMemory )
public: int CreateGdPictureImageFromFile( String^ FilePath, bool LoadInMemory )
Parameters
- FilePath
- The file path of the input image file. Use the empty string to allow the control to prompt users to select a file.
You can subsequently use the GdPictureImaging.GetLastPath method to retrieve the path of the selected file.
- LoadInMemory
- Specifies if the document content will be loaded into memory (true). Loading the document content directly into memory results in a better manipulation performance, but it consumes more memory. If you load a file into memory, you can subsequently overwrite or delete the file.
Return Value
Be aware that you need to release the image resource with the GdPictureImaging.ReleaseGdPictureImage method after being used.