mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Test ImageDraw's bitmap()
This commit is contained in:
parent
5b55cb72d3
commit
60b2570133
BIN
Tests/images/imagedraw_bitmap.png
Normal file
BIN
Tests/images/imagedraw_bitmap.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
|
@ -71,6 +71,20 @@ def test_arc2():
|
|||
helper_arc(bbox2)
|
||||
|
||||
|
||||
def test_bitmap():
|
||||
# Arrange
|
||||
small = Image.open("Tests/images/pil123rgba.png").resize((50, 50))
|
||||
im = Image.new("RGB", (w, h))
|
||||
draw = ImageDraw.Draw(im)
|
||||
|
||||
# Act
|
||||
draw.bitmap((10, 10), small)
|
||||
del draw
|
||||
|
||||
# Assert
|
||||
assert_image_equal(im, Image.open("Tests/images/imagedraw_bitmap.png"))
|
||||
|
||||
|
||||
def helper_chord(bbox):
|
||||
# Arrange
|
||||
im = Image.new("RGB", (w, h))
|
||||
|
|
Loading…
Reference in New Issue
Block a user