Exemplo n.º 1
0
        /// <summary>
        /// Creates a new PageImageList that contains empty images (no pixel data) with the
        /// appropriate PixelFormat, Size and Resolution.
        /// </summary>
        /// <param name="pageCount">Page count to get.</param>
        /// <param name="pixelFormat">The new pixel format.</param>
        /// <param name="quality">The fax quality to use (sets resolution)</param>
        /// <param name="paperSize">The page size to use (width and height)</param>
        /// <returns>The new page image list.</returns>
        internal static List <PageImage> CreateCroppedPageImageList(List <PageImage> list)
        {
            List <PageImage> ret = new List <PageImage>();

            foreach (PageImage img in list)
            {
                PageImage newpage = new PageImage();
                newpage._sourceBmp = BitmapHelper.CreateCopyCrop(img._sourceBmp);
                ret.Add(newpage);
            }
            return(ret);
        }