Home > Software engineering >  Intercept specify the size of the pictures from the photos, and then save
Intercept specify the size of the pictures from the photos, and then save

Time:11-22

After capture, image size is different from the original image size, how to preserve the interception of picture? O bosses give directions

CodePudding user response:

Can use Windows API bitblt for image capture, in vb picturebox PaintPicture method is the concrete implementation, this API can put a picturebox copies of all or part of the paste to the other a picturebox specified location, and more convenient to call,
Specific parameters are too lazy to write you ask baidu,
Save image can directly use the vb own savepicture method, but this can only be saved BMP format (even if you put the file named JPG), if you want to save into other formats will have trouble, Suggestions on baidu search to search the corresponding vb realize the module code
  • Related