mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 08:23:50 -04:00
Update displaydevice.py
This commit is contained in:
parent
4da329385f
commit
7584222746
@ -11,7 +11,7 @@ class DisplayMetrics(object):
|
|||||||
|
|
||||||
|
|
||||||
def ImageToLPBM(image):
|
def ImageToLPBM(image):
|
||||||
#Simple function to convert a PIL Image into LPBM format.
|
"""Simple function to convert a PIL Image into LPBM format"""
|
||||||
|
|
||||||
# Ensure the image is in grayscale ('L') or monochrome ('1') mode
|
# Ensure the image is in grayscale ('L') or monochrome ('1') mode
|
||||||
image = image.convert('1') # Convert to monochrome (1-bit) if not already
|
image = image.convert('1') # Convert to monochrome (1-bit) if not already
|
||||||
|
Loading…
Reference in New Issue
Block a user