首先,我的问题是How do I convert image to 2-bit per pixel?,不幸的是它的解决方案并不在我的情况下工作,不同的... 我需要将图像转换为每像素2位灰度BMP格式。样本图像具有以下属性: Color Model: RGB
Depth: 4
Is Indexed: 1
Dimension: 800x600
Size: 240,070 bytes (4 b
我是Python新手,开始学习Eric Matthes的“Python速成教程”。我在Pygame章节的开始,我遵循代码,但我加载的图像总是看起来损坏,我不知道为什么。代码来自该书。第一个文件: import pygame
class Ship():
def __init__(self, screen):
"""Initialize the ship and s