private SIIGBF CalculateFlags()
{
SIIGBF flags = 0x0000;
if (AllowBiggerSize)
{
flags |= SIIGBF.BiggerSizeOk;
}
if (FormatOption != ShellThumbnailFormatOption.IconOnly)
{
if (RetrievalOption == ShellThumbnailRetrievalOption.CacheOnly)
{
flags |= SIIGBF.InCacheOnly;
}
else if (RetrievalOption == ShellThumbnailRetrievalOption.MemoryOnly)
{
flags |= SIIGBF.MemoryOnly;
}
}
if (FormatOption == ShellThumbnailFormatOption.IconOnly)
{
flags |= SIIGBF.IconOnly;
}
else if (FormatOption == ShellThumbnailFormatOption.ThumbnailOnly)
{
flags |= SIIGBF.ThumbnailOnly;
}
return flags;
}