|
11 |
Sourceimagepath original image path |
12 |
The path of the thumbnail generated by miniatureimagepath. If not defined, it is the original image folder. |
13 |
Miniatureimagewidth: width of the thumbnail generated |
14 |
Miniatureimageheight: height of the thumbnail generated |
15 |
|
16 |
/** The width and height can be customized, And the definition may be distorted. If one of them is not configured or the value is 0, it can be automatically scaled in proportion to the original image **/ |
17 |
Watermarkimagepath specifies the path of the watermark image |
18 |
Savewatermarkimagepath stores the path of the generated watermark file. If it is not defined, it is the original image folder. |
19 |
Watermarktext watermark text |
20 |
Set the transparency of watermarktransparence. The maximum value is 100. |
21 |
Watermark rotation angle. The maximum value is 360. |
22 |
Watermarktextsize watermark text size |
23 |
Position of the watermark when watermarkalign is used to draw the watermark. Its type is imagealign, |
24 |
Call WM. watermarkalign = panroorimagewatermark. imagealign. Center; this is centered. Multiple parameters are optional. |
25 |
|
26 |
Watermarktextsize specifies the watermark text size |
27 |
Watermarkplacex: Specifies the x-axis value of the position of the custom watermark. If watermarkalign is configured, the value is based on the custom priority. |
28 |
Watermarkplacey: Specifies the value of the Y axis of the watermark position. |
29 |
Watermarktextfont set watermark text font |
30 |
Watermarktextcolor watermark text color |
31 |
Watermarktextcss watermark text style, such as: bold, skewed, underline, Dash, etc. It belongs to the textcss type |
32 |
Watermarktextshadowcolor: Specifies the watermark text shadow color, which is only valid for text watermarks. |
33 |
Watermarktextshadowdepthx custom watermark text shadow DEPTH x axis value, that is, control the shadow size |
34 |
Watermarktextshadowdepthy custom watermark text shadow depth Y axis value, that is, control the shadow size |
35 |
Watermarkimagegroundcolor: filter the background color of the watermark image. The color of the assignment must be exactly the same as the color to be filtered. |
36 |
Imagezipwidth: redefines the source image width to compress the image. It is only valid for the image after the watermark is generated, and the source image remains unchanged. |
37 |
Imagezipheight is the same as above. |
38 |
// It does not seem to make any sense below. I just add it as a helper, and there are very few opportunities to use it. ^_^ |
39 |
Converimageeffect sets the effect of the generated watermark file, for example, converting it to a black-and-white image or a negative image (negative film). It belongs to the converteffect type. The larger the image, the longer the processing time. |
40 |
|
41 |
Gettominiatureimage (); |
42 |
Gettowatermarkimage (); execute the watermark image generation operation. |