Skip to content

Commit

Permalink
Update docs for border method.
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandijck committed Nov 3, 2023
1 parent f2ba363 commit 05c5593
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ $image = Image::useImageDriver(ImageDriver::Imagick)->load('path/to/image.jpg');

## Other changes
- The option to create a manipulations instance has been removed.
- the `border` method now accepts a BorderType enum value, and it's parameters have been reordered.
4 changes: 2 additions & 2 deletions docs/image-manipulations/image-canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ $image->background('darkgray');

## Border

The `border` method adds border with a certain `$width`, `$color` and `$borderType` to the `Image`.
The `border` method adds border with a certain `$width`, `$borderType` and `$color` to the `Image`.

```php
$image->border(15, '007698', Manipulations::BORDER_SHRINK);
$image->border(15, BorderType::Shrink, '007698');
```

![Border](../../images/example-border.jpg)
Expand Down

0 comments on commit 05c5593

Please sign in to comment.