Home > Software engineering >  Vb how to modify the size of the pictures
Vb how to modify the size of the pictures

Time:11-01

Vb how to modify the size of the pictures? , I now use a picture out of the camera is 44 mm * 54.2 mm, the resolution is 96, pixel size is 260 * 320, and how to modify the photos in VB into 26 mm * 32 mm, resolution stay above $150? (I am not to change the pixel size! Is the actual printing size, resolution to 26 mm * 32 mm, more than 150)

CodePudding user response:

No resolution image itself is not also does not have what the size of the pixel size only. Unless you use a vector diagram can be arbitrary scaling without distortion.

CodePudding user response:


I now of the VB software view after taking photos with PHOTOSHOP to open the image size is the screenshot above, but the pictures requires the document size is 26 mm * 32 mm resolution 150 above, how to implement in VB directly out requirement standard pictures?

CodePudding user response:

150 pixels per inch=100/2.54/m * 150=5906 pixels, BMP file header biXPelsPerMeter, biYPelsPerMeter directly to the value,

26/25.4 * 150=154
32/25.4 * 150=189
So pictures to cut into 154 x189 pixels,

CodePudding user response:

Simple bilinear interpolation, complex cubic convolution interpolation
But with PHOTOSHOP, you can use PHOTOSHOP to do it, just do yourself free!
  • Related