Rotating image now

pull/1/head
Julius Riegel 7 years ago
parent 1164a587ac
commit 29f3ebb70e

@ -42,7 +42,7 @@
<entry file="file://$PROJECT_DIR$/lib/graphiclib.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="474">
<caret line="86" column="59" lean-forward="true" selection-start-line="86" selection-start-column="59" selection-end-line="86" selection-end-column="59" />
<caret line="86" column="87" lean-forward="false" selection-start-line="86" selection-start-column="87" selection-end-line="86" selection-end-column="87" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>
@ -494,7 +494,7 @@
<entry file="file://$PROJECT_DIR$/lib/graphiclib.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="474">
<caret line="86" column="59" lean-forward="true" selection-start-line="86" selection-start-column="59" selection-end-line="86" selection-end-column="59" />
<caret line="86" column="87" lean-forward="false" selection-start-line="86" selection-start-column="87" selection-end-line="86" selection-end-column="87" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>

@ -83,6 +83,6 @@ class PiCamera(pygame.sprite.Sprite):
def update(self, *args):
print('updating camera')
with picamera.array.PiRGBArray(self.camera, size=self.size) as output:
self.camera.capture(output, 'rgb', resize=self.size)
s = pygame.surfarray.make_surface(output.array)
self.camera.capture(output, 'rgb')
s = pygame.transform.rotate(pygame.surfarray.make_surface(output.array), 90)
self.image.blit(s, (0, 0))
Loading…
Cancel
Save