Skip to content

Commit fd3597a

Browse files
committed
docs: add more changes in functionalities
1 parent 9190508 commit fd3597a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

blog/release.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ Several methods have been renamed for consistency:
125125

126126
`img.getChannel()` ➡️ `img.extractChannel()`
127127

128+
`img.rotateLeft()` and `img.rotateRight()` ➡️ `img.rotate()`
129+
130+
`img.flipX()` and `img.flipY()` ➡️ `img.flip()`
131+
128132
Consistent naming follows common conventions ("draw\*" for rendering, "clone" for copying objects).
129133

130134
### Compatibility requirements
@@ -140,6 +144,11 @@ The following deprecated features have been removed:
140144
- `paintLabels()` - Feature was removed due to dependency issues. We plan to add it back in the future updates.
141145
- `warpingFourPoints()` - Use `getPerspectiveWarp()` + `transform()`.
142146
- 32-bit color depth has been currently deprecated. We plan to add it back in the future updates as well.
147+
- `CMYK` and `HSL` color models have been deprecated. We plan to add it in the future updates.
148+
- `insert()` has been deprecated. We plan to add it in the future updates.
149+
- `abs()` has been deprecated. Currently 32-bit images are not supported.
150+
- `paintMasks()` has been deprecated. Use `paintMask()`+ `for` loop.
151+
- `mergeRois()` has been deprecated. We plan to add it in the future updates.
143152

144153
## 🆕 New Features
145154

@@ -202,6 +211,21 @@ const warped = img.transform(matrix);
202211

203212
**Use case**: Rectification of a perspective angle of an image. You can learn more about it [here](../docs/Features/Geometry/Get%20Perspective%20Warp%20Matrix).
204213

214+
### `merge()`
215+
216+
`merge()` allows combining several one-channel images into one image. It is the opposite of `split()`:
217+
218+
```ts
219+
// Creates 3 grayscale images;
220+
const img2 = new Image(2, 2, { colorModel: 'GREY', bitDepth: 8 }).fill(0);
221+
const img1 = new Image(2, 2, { colorModel: 'GREY', bitDepth: 8 }).fill(0);
222+
const img3 = new Image(2, 2, { colorModel: 'GREY', bitDepth: 8 }).fill(255);
223+
// Creates RGB image. In this case, it creates blue 2x2 image.
224+
const img4 = merge([img1, img2, img3]);
225+
```
226+
227+
**Use case**: Combination of multiple channels into one image after they were.
228+
205229
## 🚀 Getting Started
206230

207231
To get started with ImageJS, we recommend visiting our ["Get started"](../docs/Getting%20started) guide

0 commit comments

Comments
 (0)