namespace XP.ReportEngine.Models
{
///
/// 图像数据封装 | Image data wrapper
///
public class ImageData
{
///
/// 图像来源类型 | Image source type
///
public ImageSourceType SourceType { get; set; }
///
/// 字节数组数据(当 SourceType 为 Bytes 时)| Byte array data
///
public byte[] Bytes { get; set; }
///
/// 文件路径(当 SourceType 为 FilePath 时)| File path
///
public string FilePath { get; set; }
///
/// BitmapSource 引用(当 SourceType 为 BitmapSource 时)| BitmapSource reference
///
public object BitmapSource { get; set; }
}
public enum ImageSourceType
{
Bytes,
FilePath,
BitmapSource
}
}