此方法已在适用于 Linux 和 Windows 的 FRE 中实现。
语法
C++
C#
Visual Basic .NET
参数
返回值
备注
示例
C# 示例代码
C# 示例代码
HRESULT IsEmpty( VARIANT_BOOL* Result );
bool IsEmpty();
Function IsEmpty() As Boolean
C# 示例代码
// 自定义图像源的示例实现,用于维护图像文件队列
public class ImageSourceCallback : FREngine.IImageSource
{
public ImageSourceCallback( string imageFilesDirectory )
{
imageFiles = ImageSourceHelper.LoadFilesNames( imageFilesDirectory );
nextFileIndex = 0;
}
public bool IsEmpty()
{
return nextFileIndex >= imageFiles.Length;
}
public FREngine.IFileAdapter GetNextImageFile()
{
if( !IsEmpty() ) {
return new FileAdapterCallback( imageFiles[nextFileIndex++] );
}
return null;
}
public FREngine.IImageDocument GetNextImageDocument()
{
...
}
private string[] imageFiles;
private int nextFileIndex;
}
public class FileAdapterCallback : FREngine.IFileAdapter
{
...
}
public class ImageSourceHelper
{
...
}
此页面对您有帮助吗?