Pillow Flashcards

1
Q

pillow: In pillow, the RGBA values are stored as

A

a tuple with four values. Red, Green, Blue and Opacity. All of the values are between 0 and 255.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

pillow: To import pillow type

A

import PIL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

pillow: to get the RGBA values tuple for a color name, type

A

from PIL import ImageColor

ImageColor.getcolor(“color”, “RGBA”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

pillow: To load an image into a var, type

A

from PIL import Image

image_var= Image.open(‘image.png’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

pillow: To return the size of your image_var, type

A

image_var.size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly