'Declaration
Public Overloads Function CreateGdPictureImageFromFile( _ ByVal FilePath As String, _ ByVal LoadInMemory As Boolean, _ ByVal DirectAccess As Boolean _ ) As Integer
public int CreateGdPictureImageFromFile( string FilePath, bool LoadInMemory, bool DirectAccess )
public function CreateGdPictureImageFromFile( FilePath: String; LoadInMemory: Boolean; DirectAccess: Boolean ): Integer;
public function CreateGdPictureImageFromFile( FilePath : String, LoadInMemory : boolean, DirectAccess : boolean ) : int;
public: int CreateGdPictureImageFromFile( string* FilePath, bool LoadInMemory, bool DirectAccess )
public: int CreateGdPictureImageFromFile( String^ FilePath, bool LoadInMemory, bool DirectAccess )
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 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.
- DirectAccess
- Setting this parameter to true causes to load only image properties, metadata and an embedded thumbnail. This parameter is particularly useful when you need to only obtain image information without decoding the image itself.
Be aware that all subsequent calls to the methods requiring pixel access using this image resource will fail.
Return Value
Be aware that you need to release the image resource with the ReleaseGdPictureImage method after being used.