S0ldier

Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору VladSP Windows XP SP3: MS Paint при пересохранении заменяет исходное разрешение картинки и ее битность на значения, установленные в свойствах рабочего стола. Кстати, даже на форумах Microsoft можно наткнуться на интересные вещи: Цитата: Question 1: When i create a bitmap object from a bitmap file, and check it's horizontal resolution, sometimes the resolution is the same like when i open the same image in MS Paint and sometime is not. What is going on? For example, I open an image in my program and it's 96dpi, and that same image in MS Paint shows 72dpi. But they appear to be exactly the same size on the screen when I line up both programs and compare images visually. My desktop dpi is 96. I think, but I'm not sure, with JPG files this problem doesn't exist. Question 2: When I create a new blank image in MS Paint it's always 72dpi regardless of the screen dpi which is 96. Why is that? | Цитата: 1) The DPI settings in a bitmap really have nothing to do with the data in the image itself - they are just hints for printing. They just say "if you're going to print this image, make each pixel 1/72 inces or 1/96 inches wide" - but the image data is in pixels, and saved in a certain number of (usually 24) bits per pixel of the image. When you display the image on the screen, it's going to display in pixels, not in DPI - so if your screen is a certain resolution, you'll normally just see the image in it's full pixel resolution directly (unless you've scaled the image for display). You can take an image and change it's DPI hint settings, and it will have no effect on the image itself - the file won't get bigger or smaller, and the image will display on screen identically, whether it's at 50dpi or 4000dpi. 2) 72dpi is kind of the default standard for printing. Many layout programs will take an image and say it's 72dpi if the DPI settings aren't specified explicitly. MS Paint doesn't give you as much control as most full-featured image editing software. Try this in Photoshop, or Paint.NET, or another image editing program that gives more control over your images, and you'll be able to set it however you want. | http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/513cc286-ad22-4045-b992-6334bf48c6ea/ Цитата: Check the DPI. MSPaint may change it to 96 dpi. You can change it in code to get the size you wish in Document Imaging Viewer. Verified that MSPaint changes the dpi to the screen resolution. | http://social.msdn.microsoft.com/Forums/en/winforms/thread/4b279125-3fd4-48b5-bb39-09d01a5228b7 И все-таки, ответ на вопрос о том, можно ли заставить Paint перестать заниматься самодеятельностью вырисовывается довольно однозначный - нельзя: Цитата: No, you can't alter the print sizes in MS Paint. It's just a tool to do basic drawing so for printing you'll need different software. | http://social.technet.microsoft.com/Forums/en/w7itproappcompat/thread/215f6361-c2e5-4aac-9b67-67ed6f2cc4fa Ставьте фреймворк и Paint.NET  | Всего записей: 3230 | Зарегистр. 18-01-2005 | Отправлено: 04:48 06-02-2011 | Исправлено: S0ldier, 04:52 06-02-2011 |
|