MCPcopy Create free account
hub / github.com/kiibohd/controller / prep

Method prep

Scan/Devices/STLcd/bitmap2Struct.py:196–205  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 return disp_test
195
196 def prep(self):
197 image = self.create_and_convert_image()
198 self.check_boundries(image)
199 height_start, height_end, width_start, width_end = self.center_image(image)
200 disp_test = self.prepare_view(image,
201 height_start,
202 height_end,
203 width_start,
204 width_end)
205 return disp_test
206
207 def output_image_fn(self):
208 print(self.output_image.preview())

Callers 1

__init__Method · 0.95

Calls 4

check_boundriesMethod · 0.95
center_imageMethod · 0.95
prepare_viewMethod · 0.95

Tested by

no test coverage detected