Photos Module, PIL, and layer.image
Howdy all! I'm working on getting used to the photos module, which is fairly simple. However, I have one small difficulty: how to use the photos in the scene module.
The basic function of the hypothetical program is it takes a picture and then starts a scene. In this scene is a layer (we'll call it [self.layer]). I want to then do [self.layer.image = picture], where [picture] is the photo I just created. Only problem is that [capture_image()] returns no string value.
I realize that photos use the PIL, something I know next to nothing (okay, perhaps nothing) about. Is there a way to name the picture?
You can use the
load_pil_imagefunction to load an image from the
photosmodule into a scene.
By the way, this is why I love Python. It is so simple, yet is very adaptable.