using ComPDFKit.PDFDocument; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PDF_Office.Model.EditTools.Background { public class BackgroundCreateModel { } public enum EnumBackgroundType { StatusColor, StatusFile } public class BackgroundInfo { /// /// 背景类型 /// public C_Background_Type BackgroundType = C_Background_Type.BG_TYPE_COLOR; /// /// 纯色背景颜色 /// public byte[] Color; /// /// 图片背景数据 /// public byte[] ImageArray; /// /// 背景旋转角度 /// public float Rotation; /// /// 背景透明度 /// public byte Opacity; /// /// /// public float Scale; /// /// 背景相对垂直距离; /// public float VertOffset = 0; /// /// 背景相对水平距离; /// public float HorizOffset = 0; /// /// 图片背景:宽度 /// public int ImageWidth; /// /// 图片背景:长度 /// public int ImageHeight; /// ///垂直位置 /// public C_Background_Vertalign Vertalign; /// /// 水平位置 /// public C_Background_Horizalign Horizalign; /// /// 页码范围 /// public string PageRange = "0"; /// /// 页面范围索引; /// 0:全部页面 /// 1:奇数页 /// 2;偶数页 /// 3:自定义页 /// public int PageRangeIndex = 0; /// /// - /// public bool IsRelativeScale = true; } }