コード例 #1
0
ファイル: ImageConverter.cs プロジェクト: westfax/SDK-Fax
 private static void DrawSourceToDestination(List <PageImage> source, List <PageImage> destination)
 {
     ImageConverter.DrawSourceToDestination(source, destination, ImageUtility.InterpolationMode);
 }
コード例 #2
0
ファイル: ImageConverter.cs プロジェクト: westfax/SDK-Fax
 /// <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));
 }
コード例 #3
0
ファイル: ImageConverter.cs プロジェクト: westfax/SDK-Fax
 /// <summary>
 /// Creates a new PageImageList containing pages with the new pixel format.  The
 /// source PageImageList is not altered.
 /// </summary>
 /// <param name="pages">The PageImageList to alter.</param>
 /// <param name="pixelFormat">The pixel format to use.</param>
 /// <returns>The new PageImageList.</returns>
 private static List <PageImage> ConvertPixelFormat(List <PageImage> pages, PixelFormat pixelFormat)
 {
     return(ImageConverter.ConvertPixelFormat(pages, pixelFormat, 500));
 }
コード例 #4
0
ファイル: ImageConverter.cs プロジェクト: westfax/SDK-Fax
 /// <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)));
 }
コード例 #5
0
        public static List <PageImage> ConvertToFaxPageImageList(List <PageImage> pages, FaxQuality quality, PaperSize paperSize)
        {
            ImageOperationResult result = new ImageOperationResult();

            return(ImageConverter.ConvertToFaxablePageImageList(pages, quality, paperSize, result));
        }