SetPageThumbnailFromStream
页面属性
描述
将从流读取的图像附加为页面缩略图,不将图像添加到页面内容资源
语法
Delphi
Function TPDFlib.SetPageThumbnailFromStream(InStream: TStream; Page, Options: Integer): Integer;
参数
| InStream | 流定位在要用作缩略图的图像数据处 |
|---|---|
| Page | 接收 /Thumb 条目的从 1 开始的页码 |
| Options | 传给图像解码器的图像导入选项 |
返回值
| 0 | 无法加载流图像或页面无效 |
|---|---|
| 1 | 页面缩略图已附加到页面 |
备注
调用会保留当前选中的绘制图像,并通过 GetPageThumbnailInfo 读取缩略图尺寸
另请参阅
SetPageThumbnailFromFileEx, SetPageThumbnailFromString, GetPageThumbnailInfo