from PIL import Image, ImageDraw

# Open the BMP file
img = Image.open("image.bmp")

# Get the size of the image
width, height = img.size

# Create a new image with the same size and mode as the original
new_img = Image.new(img.mode, (width, height))

# Draw a line on the new image
draw = ImageDraw.Draw(new_img)
draw.line((0, height//2, width, height//2), fill=(255, 0, 0), width=2)

# Paste the original image onto the new image
new_img.paste(img, (0, 0))

# Save the new image as a BMP file
new_img.save("new_image.bmp")
 First repeat the request without change, then give your answer.
user