Layeredimage Index / Layeredimage / Io / Common
Auto-generated documentation for layeredimage.io.common module.
Get the blendmode from a lookup table.
def blendModeLookup(
blendmode: Any,
blendLookup: dict[Any, Any],
default: BlendType | tuple[str, ...] = BlendType.NORMAL,
) -> BlendType: ...foreground (np.ndarray | Image.Image): The foreground layer (must be the same size as the background).
opacityfloat, optional - The opacity of the foreground image. Defaults to 1.0. offsets (Tuple[int, int], optional): Offsets for the foreground layer. Defaults to (0, 0).
Image.Image- The image.
def expandLayer(
dimensions: tuple[int, int],
foreground: np.ndarray | Image.Image,
opacity: float = 1.0,
offsets: tuple[int, int] = (0, 0),
) -> Image.Image: ...Return layers and throw a warning if the image has groups.
def expandLayersToCanvas(
layeredImage: LayeredImage, imageFormat: str
) -> list[Image.Image]: ...