/* ----------------------------------------------------------------- */ /// /// Create /// /// <summary> /// Create a new instance of the ImageSource class with the /// specified parameters. /// </summary> /// /// <param name="src">Renderer object.</param> /// <param name="page">Page object.</param> /// <param name="ratio">Scaling ratio.</param> /// /// <returns>ImageSource object.</returns> /// /* ----------------------------------------------------------------- */ public static ImageSource Create(this IDocumentRenderer src, Page page, double ratio) => src.Create(page, page.GetViewSize(ratio).Value);
/* ----------------------------------------------------------------- */ /// /// Create /// /// <summary> /// Create a new instance of the ImageSource class with the /// specified parameters. /// </summary> /// /// <param name="src">Renderer object.</param> /// <param name="entry">Information of the creating image.</param> /// /// <returns>ImageSource object.</returns> /// /* ----------------------------------------------------------------- */ public static ImageSource Create(this IDocumentRenderer src, ImageItem entry) => src.Create(entry.RawObject, new SizeF(entry.Width, entry.Height));