Release a software for batch processing of image printing resolutions (DPI)
Purpose: When you insert an image into a word, you may find that the inserted image is larger or smaller. Very difficult. The reason is that when word is processing an image, the DPI of the image is 96 by default, so for an image with 72dpi, it will become larger when it is inserted into word; for a picture with 300dpi, it will become smaller when it is inserted into word. The ratio is 96/72 or 96/300.
The function of the software is to modify the DPI of the image without changing the actual width and height of the image.
Software running platform: Windows XP, must install. NET Framework 2.0 or above.
AboutProgramMember:
In fact, the core of the softwareCodeJust a few simple lines of code:
Private Void Editimagedpi ( String Filename)
{
Lock (Lockobject)
{
Using (Bitmap newimage = New Bitmap (image. fromfile (filename )))
{
Newimage. setresolution (_ newdpiwidth, _ newdpiheight );
Newimage. Save (_ savefold + " \\ " + Getfilenamebyfilefullname (filename ),
System. Drawing. imaging. imageformat. JPEG );
}
}
}< P>
Software: http://files.cnblogs.com/bruceleeliya/EditImageDPI.rar
Source Code address: http://files.cnblogs.com/bruceleeliya/Source_Code_By_EditImageDPI.rar