Krita Source Code Documentation
Loading...
Searching...
No Matches
resize_to_all_layers Namespace Reference

Variables

 b = n.bounds()
 
 d = Krita.instance().activeDocument()
 
 h = d.height()
 
 r = QRect(x, y, w, h)
 
 w = d.width()
 
 x = d.xOffset()
 
 y = d.yOffset()
 

Detailed Description

This script will iterate over all toplevel nodes, create
keeping track of the layer boundaries and then resize
the image to the unity of all boundaries.

Variable Documentation

◆ b

resize_to_all_layers.b = n.bounds()

Definition at line 26 of file resize_to_all_layers.py.

◆ d

resize_to_all_layers.d = Krita.instance().activeDocument()

Definition at line 15 of file resize_to_all_layers.py.

◆ h

resize_to_all_layers.h = d.height()

Definition at line 17 of file resize_to_all_layers.py.

◆ r

resize_to_all_layers.r = QRect(x, y, w, h)

Definition at line 22 of file resize_to_all_layers.py.

◆ w

resize_to_all_layers.w = d.width()

Definition at line 16 of file resize_to_all_layers.py.

◆ x

resize_to_all_layers.x = d.xOffset()

Definition at line 18 of file resize_to_all_layers.py.

◆ y

resize_to_all_layers.y = d.yOffset()

Definition at line 19 of file resize_to_all_layers.py.