Expression painter:currentsize() returns two numbers representing the width and height of the drawing are expressed in pixels. The returned values are not affected by the current transformation matrix. They correspond to the default coordinate system sets by painter:initmatrix.