Setting DPI image in relation to height / width C #

I am writing an application to send images to third parties, and the images should be 200x200 DPI. The image is a raster image and has a size of 500 and 250 heights.

The first time I tested third-party images, my decision was wrong. I just used image.SetResolution(200,200)to set it to 200x200 correctly. This, however, changed only the image resolution tag and was not true, according to my third-party technical contact, adjust the height and width of the image.

Is there a relation that I can use so that for each X units I increase the resolution, I just increase the corresponding units in height or width Y? I thought I could just increase the resolution without increasing the height or width.

Thanks, Aaron.

+5
source share
2 answers

Digitally stored image does not have a meaningful DPI concept. DPI is played when playing back an image on a physical device.

You need to adjust the image size in relation to the DPI of the physical device and the desired output size on this device.

, , 300 , 4in x 4in, 1200x1200 . 4 x 4 300 . 600 2in x 2in.

+11

PPI, . DPI .

, 200px 200px @200PPI, 1 1 .

0

All Articles