SetPageThumbnailFromStream

页面属性

描述

将从流读取的图像附加为页面缩略图,不将图像添加到页面内容资源

语法

Delphi

Function TPDFlib.SetPageThumbnailFromStream(InStream: TStream; Page, Options: Integer): Integer;

参数

InStream流定位在要用作缩略图的图像数据处
Page接收 /Thumb 条目的从 1 开始的页码
Options传给图像解码器的图像导入选项

返回值

0无法加载流图像或页面无效
1页面缩略图已附加到页面

备注

调用会保留当前选中的绘制图像,并通过 GetPageThumbnailInfo 读取缩略图尺寸

另请参阅

SetPageThumbnailFromFileEx, SetPageThumbnailFromString, GetPageThumbnailInfo