Resolution does not change the number of pixels, just the size of the display increases the resolution of the pixel makes the display larger, but does not make the file larger.
If you make a JPEG that repeats the same information over and over, it gets bigger - compression based on 8x8 cells - if you have more cells, you will have more data. To make them bigger, encode with quality set to 100. Another thing is that JPEG emphasizes cell-based brightness, so shading changes less well than shading.
DotImage, 10- jpg . eval , SDK .
using System;
using System.Drawing;
using Atalasoft.Imaging;
using Atalasoft.Imaging.Codec;
using Atalasoft.Imaging.Drawing;
namespace MakeLargeImage
{
class Program
{
static void Main(string[] args)
{
AtalaImage img = new AtalaImage(1000, 8000, PixelFormat.Pixel24bppBgr);
Canvas c = new Canvas(img);
for (int block = 0; block < img.Height; block += 1000)
{
for (int line = 0; line < 1000; line += 4)
{
int y = block + line;
c.DrawLine(new Point(0, y), new Point(img.Width, block), new AtalaPen(Color.Yellow));
c.DrawLine(new Point(0, y + 1), new Point(img.Width, y + 1), new AtalaPen(Color.Red));
c.DrawLine(new Point(0, y + 2), new Point(img.Width, y + 2), new AtalaPen(Color.Green));
c.DrawLine(new Point(0, block), new Point(img.Width, y + 3), new AtalaPen(Color.Blue));
}
}
JpegEncoder jpeg = new JpegEncoder(100);
img.Save("10mb.jpg", jpeg, null);
}
}
}
, JPEG . , , .
PDF - - - , . DotImage PdfEncoder - jpgs FileSystemImageSource - , , , , - Atalasoft ( .