5.3. sail.PaddingAtrr

5.3.1. __init__

Interface:
def __init__(self):
Interface:
def __init__(self,
            stx: int,
            sty: int,
            width: int,
            height: int,
            r: int,
            g: int,
            b: int)

Parameters

  • stx : int

Offset x information relative to the origin of dst image

  • sty : int

Offset y information relative to the origin of dst image

  • width : int

The width after resize

  • height : int

The height after resize

  • r : int

Pixel value information of R channel

  • g : int

Pixel value information of G channel

  • b : int

Pixel value information of B channel

5.3.2. set_stx

set offset stx.

Interface:
def set_stx(self, stx: int)

Parameters

  • stx : int

Offset x information relative to the origin of dst image

5.3.3. set_sty

set offset sty.

Interface:
def set_sty(self, sty: int)

Parameters

  • sty : int

Offset y information relative to the origin of dst image

5.3.4. set_w

set width.

Interface:
def set_w(self, width: int)

Parameters

  • width : int

The width after resize

5.3.5. set_h

set height.

Interface:
def set_h(self, height: int)

Parameters

  • height : int

The height after resize

5.3.6. set_r

set R.

Interface:
def set_r(self, r: int)

Parameters

  • r : int

Pixel value information of R channel

5.3.7. set_g

set G.

Interface:
def set_g(self, g: int):

Parameters

  • g : int

Pixel value information of G channel

5.3.8. set_b

set B

Interface:
def set_b(self, b: int)

Parameters

b : int

Pixel value information of B channel