MCPcopy Index your code
hub / github.com/clips/pattern / __init__

Method __init__

pattern/web/pdf/layout.py:171–182  ·  view source on GitHub ↗
(self, name, stream, bbox)

Source from the content-addressed store, hash-verified

169class LTImage(LTComponent):
170
171 def __init__(self, name, stream, bbox):
172 LTComponent.__init__(self, bbox)
173 self.name = name
174 self.stream = stream
175 self.srcsize = (stream.get_any(('W', 'Width')),
176 stream.get_any(('H', 'Height')))
177 self.imagemask = stream.get_any(('IM', 'ImageMask'))
178 self.bits = stream.get_any(('BPC', 'BitsPerComponent'), 1)
179 self.colorspace = stream.get_any(('CS', 'ColorSpace'))
180 if not isinstance(self.colorspace, list):
181 self.colorspace = [self.colorspace]
182 return
183
184 def __repr__(self):
185 return ('<%s(%s) %s %r>' %

Callers

nothing calls this directly

Calls 2

get_anyMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected