DASaveImageDataToFile
Obsługa obrazów, Funkcje dostępu bezpośredniego
Opis
Zapisuje obraz z listy obrazów do pliku na dysku. Typ pliku zależy od typu obrazu. Do określenia typu obrazu można użyć funkcji DAGetImageIntProperty.
Składnia
Delphi
Function TPDFlib.DASaveImageDataToFile(FileHandle, ImageListID, ImageIndex: Integer; Const ImageFileName: WideString): Integer;
ActiveX
Function PDFlib::DASaveImageDataToFile(FileHandle As Long, ImageListID As Long, ImageIndex As Long, ImageFileName As String) As Long
DLL
int DLDASaveImageDataToFile(int InstanceID, int FileHandle, int ImageListID, int ImageIndex, const wchar_t* ImageFileName);
int DLDASaveImageDataToFileA(int InstanceID, int FileHandle, int ImageListID, int ImageIndex, const char* ImageFileName);
Parametry
| FileHandle | Uchwyt zwrócony przez funkcję DAOpenFile, DAOpenFileReadOnly lub DAOpenFromStream |
|---|---|
| ImageListID | Wartość zwrócona przez funkcję DAGetPageImageList |
| ImageIndex | Indeks obrazu. Pierwszy obraz na liście ma indeks 1. Liczbę obrazów można określić funkcją DAGetImageListCount. |
| ImageFileName | Ścieżka i nazwa tworzonego pliku przechowującego dane obrazu. |
Wartości zwracane
Zwraca 1, gdy dane obrazu zostały zapisane. Zwraca 0, gdy uchwyt pliku lub lista obrazów są nieprawidłowe, obraz nie zawiera danych albo nie można zapisać pliku.