<s> """<STR_LIT>""" <EOL> from . base import BaseShape <EOL> from . . dml . line import LineFormat <EOL> from . . enum . shapes import MSO_SHAPE_TYPE <EOL> from . . util import lazyproperty <EOL> class Picture ( BaseShape ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , pic , parent ) : <EOL> super ( Picture , self ) . __init__ ( pic , parent ) <EOL> self . _pic = pic <EOL> @ property <EOL> def crop_bottom ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _element . srcRect_b <EOL> @ property <EOL> def crop_left ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _element . srcRect_l <EOL> @ property <EOL> def crop_right ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _element . srcRect_r <EOL> @ property <EOL> def crop_top ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _element . srcRect_t <EOL> def get_or_add_ln ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _pic . get_or_add_ln ( ) <EOL> @ property <EOL> def image ( self ) : <EOL> """<STR_LIT>""" <EOL> slide , rId = self . part , self . _element . blip_rId <EOL> return slide . get_image ( rId ) <EOL> @ lazyproperty <EOL> def line ( self ) : <EOL> """<STR_LIT>""" <EOL> return LineFormat ( self ) <EOL> @ property <EOL> def ln ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _pic . ln <EOL> @ property <EOL> def shape_type ( self ) : <EOL> """<STR_LIT>""" <EOL> return MSO_SHAPE_TYPE . PICTURE </s>
