@@ -26,10 +26,12 @@ DantSu\PHPImageEditor\Image is PHP library to easily edit image with GD extensio
26
26
27
27
## Methods
28
28
29
+ - [ __ clone] ( #-__clone )
29
30
- [ getWidth] ( #-getwidth )
30
31
- [ getHeight] ( #-getheight )
31
32
- [ getType] ( #-gettype )
32
33
- [ getImage] ( #-getimage )
34
+ - * (static)* [ isGdImage] ( #isgdimage )
33
35
- [ isImageDefined] ( #-isimagedefined )
34
36
- * (static)* [ newCanvas] ( #newcanvas )
35
37
- [ resetCanvas] ( #-resetcanvas )
@@ -51,6 +53,7 @@ DantSu\PHPImageEditor\Image is PHP library to easily edit image with GD extensio
51
53
- [ downscaleAndCrop] ( #-downscaleandcrop )
52
54
- [ crop] ( #-crop )
53
55
- [ pasteOn] ( #-pasteon )
56
+ - [ pasteGdImageOn] ( #-pastegdimageon )
54
57
- [ alphaMask] ( #-alphamask )
55
58
- [ grayscale] ( #-grayscale )
56
59
- [ writeText] ( #-writetext )
@@ -77,6 +80,25 @@ DantSu\PHPImageEditor\Image is PHP library to easily edit image with GD extensio
77
80
- [ getBase64SourceJPG] ( #-getbase64sourcejpg )
78
81
- [ getBase64SourceGIF] ( #-getbase64sourcegif )
79
82
83
+ ### ->__ clone
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ #### Return Value:
96
+
97
+ ** mixed** :
98
+
99
+
100
+
101
+ ---
80
102
### ->getWidth
81
103
82
104
Return the image width
@@ -153,6 +175,31 @@ Return image resource
153
175
154
176
155
177
178
+ ---
179
+ ### ::isGdImage
180
+
181
+ Return true if $image is a resource or a GDImage instance
182
+
183
+
184
+
185
+ * This method is ** static** .
186
+
187
+
188
+
189
+
190
+ #### Parameters:
191
+
192
+ | Parameter | Type | Description |
193
+ | -----------| ------| -------------|
194
+ | ` image ` | ** mixed** | |
195
+
196
+
197
+ #### Return Value:
198
+
199
+ ** bool** : True if $image is a resource or a GDImage instance
200
+
201
+
202
+
156
203
---
157
204
### ->isImageDefined
158
205
@@ -509,7 +556,7 @@ Rotate counterclockwise the image
509
556
510
557
| Parameter | Type | Description |
511
558
| -----------| ------| -------------|
512
- | ` angle ` | ** int ** | Angle in degrees |
559
+ | ` angle ` | ** float ** | Angle in degrees |
513
560
514
561
515
562
#### Return Value:
@@ -679,6 +726,35 @@ Paste the image at $posX and $posY position (You can use `Image::ALIGN_...`).
679
726
680
727
681
728
729
+ ---
730
+ ### ->pasteGdImageOn
731
+
732
+ Paste the image at $posX and $posY position (You can use ` Image::ALIGN_... ` ).
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+ #### Parameters:
742
+
743
+ | Parameter | Type | Description |
744
+ | -----------| ------| -------------|
745
+ | ` image ` | ** resource| ; \GdImage** | Image resource |
746
+ | ` imageWidth ` | ** int** | Image width to paste |
747
+ | ` imageHeight ` | ** int** | Image height to paste |
748
+ | ` posX ` | ** int| ; string** | Left position in pixel. You can use ` Image::ALIGN_LEFT ` , ` Image::ALIGN_CENTER ` , ` Image::ALIGN_RIGHT ` |
749
+ | ` posY ` | ** int| ; string** | Top position in pixel. You can use ` Image::ALIGN_TOP ` , ` Image::ALIGN_MIDDLE ` , ` Image::ALIGN_BOTTOM ` |
750
+
751
+
752
+ #### Return Value:
753
+
754
+ ** $this** : Fluent interface
755
+
756
+
757
+
682
758
---
683
759
### ->alphaMask
684
760
@@ -866,8 +942,8 @@ Draw a line using angle and length.
866
942
| -----------| ------| -------------|
867
943
| ` originX ` | ** int** | Horizontal start position in pixel |
868
944
| ` originY ` | ** int** | Vertical start position in pixel |
869
- | ` angle ` | ** int ** | Counterclockwise angle in degrees |
870
- | ` length ` | ** int ** | Line length in pixel |
945
+ | ` angle ` | ** float ** | Counterclockwise angle in degrees |
946
+ | ` length ` | ** float ** | Line length in pixel |
871
947
| ` weight ` | ** int** | Line weight in pixel |
872
948
| ` color ` | ** string** | Hexadecimal string color |
873
949
@@ -896,8 +972,8 @@ Draw an arrow with angle and length.
896
972
| -----------| ------| -------------|
897
973
| ` originX ` | ** int** | Horizontal start position in pixel |
898
974
| ` originY ` | ** int** | Vertical start position in pixel |
899
- | ` angle ` | ** int ** | Counterclockwise angle in degrees |
900
- | ` length ` | ** int ** | Line length in pixel |
975
+ | ` angle ` | ** float ** | Counterclockwise angle in degrees |
976
+ | ` length ` | ** float ** | Line length in pixel |
901
977
| ` weight ` | ** int** | Line weight in pixel |
902
978
| ` color ` | ** string** | Hexadecimal string color |
903
979
@@ -1300,4 +1376,4 @@ Get image GIF base64 data for <img src=""> tag.
1300
1376
1301
1377
1302
1378
---
1303
- > Automatically generated from source code comments on 2021-09-08 using [ phpDocumentor] ( http://www.phpdoc.org/ )
1379
+ > Automatically generated from source code comments on 2022-05-11 using [ phpDocumentor] ( http://www.phpdoc.org/ )
0 commit comments