此方法會建立一個 MultipageImageWriter 物件,可用於將多個影像儲存為單一的多頁影像檔,並支援進階的影像儲存參數。
HRESULT CreateMultipageImageWriter(
BSTR FileName,
ImageFileFormatEnum FileFormat,
IUnknown* ExtendedParams,
IMultipageImageWriter** Result
);
IMultipageImageWriter CreateMultipageImageWriter(
string FileName,
IImageFileFormatEnum FileFormat,
object ExtendedParams
);
Function CreateMultipageImageWriter( _
FileName As String, _
FileFormat As IImageFileFormatEnum, _
ExtendedParams As Object _
) As IMultipageImageWriter
FileName
[in] 此參數包含要儲存影像之多頁影像檔的完整路徑。例如:C:\MyPic.tif、/opt/MyPic.tif、/Users/user/Pictures/MyPic.tif。若同名檔案已存在,將不經提示直接覆寫。
FileFormat
[in] ImageFileFormatEnum 類型的變數,用於指定輸出檔案的格式。此列舉中定義的格式並非全部都支援寫入。
ExtendedParams
[in] 此變數參照 JpegExtendedParams 或 TiffExtendedParams 物件,分別定義將影像儲存為 JPEG 或 TIFF 格式時所使用的參數。此參數為選用,也可以是 NULL。
在 Linux 中,如果您使用的是以處理序外方式載入的 ABBYY FineReader Engine,則此參數必須傳遞 NULL。
Result
[out, retval] 指向 IMultipageImageWriter* 指標變數的指標;該變數會接收 MultipageImageWriter 輸出物件的介面指標。此物件可讓您將影像附加到多頁影像檔的末尾。
此方法沒有特定的傳回值。它會傳回 ABBYY FineReader Engine 函式的標準傳回值。
請注意,並非所有可供寫入的格式都適用於多頁影像。因此,您可以針對單頁格式建立 MultipageImageWriter 物件,但在產生的檔案中最多只能新增一個頁面。
Engine
MultipageImageWriter