Home > Software engineering >  VB how to invoke Photoshop library to cut out pictures?
VB how to invoke Photoshop library to cut out pictures?

Time:10-16

VB reference library of Photoshop, you can use scripts to manipulate PS work!
I want to cut images, including PS photo cropping scripts are:

PSDoc. Crop Bounds, Angle, W, H

In the official documentation that Bounds=(x, y, w, h)
I define a data type:
Type Bounds
As a double x
Y as double
W as double
H as double
End Type

Then
Dim MyCrop as Bounds
MyCrop. X=1
MyCrop. Y=2
MyCrop. W=5
MyCrop. H=10

Then,
PSDoc. Crop MyCrop results when performing the program error, grammatical errors,

Do excuse me such Bounds of the parameters to pass?

CodePudding user response:

Interface documentation be sent
  • Related