Beispiel #1
0
        /// <summary>
        /// Creates a new PageImageList containing pages that have a fax geometry.
        /// </summary>
        /// <param name="pages">The PageImageList to alter.</param>
        /// <param name="quality">The Fax Quality.  Default is Low.</param>
        /// <param name="paperSize">The Paper size.  Default is Auto.</param>
        /// <param name="interpolationMode">The Interpolation mode.  Default is High, but will use the current value in Image Utility, unless defined here. size.</param>
        /// <returns>The new PageImageList (always with 32bpp pixel format)</returns>
        private static List <PageImage> ConvertToFaxGeometry(List <PageImage> pages, FaxQuality quality, PaperSize paperSize, InterpolationMode interpolationMode)
        {
            List <PageImage> ret = ImageConverter.CreateEmptyPageImageList(pages.Count, PixelFormat.Format32bppArgb, pages[0].Bitmap.Palette, quality, paperSize);

            for (int i = 0; i < pages.Count; i++)
            {
                ImageConverter.ConvertToFaxGeometry(pages[i], ret[i], interpolationMode);
            }
            return(ret);
        }
Beispiel #2
0
 /// <summary>
 /// Creates a new PageImageList containing pages that have a fax geometry.
 /// </summary>
 /// <param name="pages">The PageImageList to alter.</param>
 /// <param name="quality">The Fax Quality.  Default is Low.</param>
 /// <param name="paperSize">The Paper size.  Default is Auto.</param>
 /// <returns>The new PageImageList (always with 32bpp pixel format)</returns>
 private static List <PageImage> ConvertToFaxGeometry(List <PageImage> pages, FaxQuality quality, PaperSize paperSize)
 {
     return(ImageConverter.ConvertToFaxGeometry(pages, quality, paperSize, ImageUtility.InterpolationMode));
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new PageImageList containing pages that have a fax geometry.
 /// </summary>
 /// <param name="pages">The PageImageList to alter.</param>
 /// <param name="quality">The Fax Quality.  Default is Low.</param>
 /// <returns>The new PageImageList (always with 32bpp pixel format)</returns>
 private static List <PageImage> ConvertToFaxGeometry(List <PageImage> pages, FaxQuality quality = FaxQuality.Normal)
 {
     return(ImageConverter.ConvertToFaxGeometry(pages, quality, ImageConverter.GetBestFitPaperSizeForList(pages, PaperSize.Auto)));
 }