Skip to content

Commit 22e8486

Browse files
committed
rel 2024.2
1 parent 7da8b29 commit 22e8486

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ patch-level version changes can be found in [commit messages](../../commits/mast
55

66
## 2024.2 - 2024/01/27
77

8+
- bug fixes
9+
- use new blendmodes
810

911
## 2024.1 - 2024/01/17
1012

documentation/reference/layeredimage/io/common.md

+32-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
77
- [Common](#common)
88
- [blendModeLookup](#blendmodelookup)
9+
- [expandLayer](#expandlayer)
910
- [expandLayersToCanvas](#expandlayerstocanvas)
1011

1112
## blendModeLookup
1213

13-
[Show source in common.py:13](../../../../layeredimage/io/common.py#L13)
14+
[Show source in common.py:14](../../../../layeredimage/io/common.py#L14)
1415

1516
Get the blendmode from a lookup table.
1617

@@ -26,9 +27,38 @@ def blendModeLookup(
2627

2728

2829

30+
## expandLayer
31+
32+
[Show source in common.py:44](../../../../layeredimage/io/common.py#L44)
33+
34+
#### Arguments
35+
36+
----
37+
foreground (np.ndarray | Image.Image): The foreground layer (must be the same size as the background).
38+
- `opacity` *float, optional* - The opacity of the foreground image. Defaults to 1.0.
39+
offsets (Tuple[int, int], optional): Offsets for the foreground layer. Defaults to (0, 0).
40+
41+
#### Returns
42+
43+
-------
44+
- `Image.Image` - The image.
45+
46+
#### Signature
47+
48+
```python
49+
def expandLayer(
50+
dimensions: tuple[int, int],
51+
foreground: np.ndarray | Image.Image,
52+
opacity: float = 1.0,
53+
offsets: tuple[int, int] = (0, 0),
54+
) -> Image.Image: ...
55+
```
56+
57+
58+
2959
## expandLayersToCanvas
3060

31-
[Show source in common.py:25](../../../../layeredimage/io/common.py#L25)
61+
[Show source in common.py:26](../../../../layeredimage/io/common.py#L26)
3262

3363
Return layers and throw a warning if the image has groups.
3464

documentation/reference/layeredimage/io/lsr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## openLayer_LSR
1212

13-
[Show source in lsr.py:14](../../../../layeredimage/io/lsr.py#L14)
13+
[Show source in lsr.py:12](../../../../layeredimage/io/lsr.py#L12)
1414

1515
Open a .lsr file into a layered image.
1616

@@ -28,7 +28,7 @@ def openLayer_LSR(file: str) -> LayeredImage: ...
2828

2929
## saveLayer_LSR
3030

31-
[Show source in lsr.py:39](../../../../layeredimage/io/lsr.py#L39)
31+
[Show source in lsr.py:37](../../../../layeredimage/io/lsr.py#L37)
3232

3333
Save a layered image as .lsr.
3434

0 commit comments

Comments
 (0)