我想知道如何将多张图像合并为一张图像,并且当图像越过砝码的边界时,它将下垂并继续粘贴(Python)
例如,如果粘贴的图像的权重大于1024,则它将在粘贴的图像下方(x = 0)下移并继续粘贴。package com.vehicles.project;
import java.util.Scanner;
public class Main_Vehicles_Fase1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Please enter your plate, car brand and color");
Car userCar = new Car(sc.nextLine(), sc.nextLine(), sc.nextLine());
System.out.println("Your plate is: " + userCar.plate + ", the brand is " + userCar.brand + " and the colour is "
+ userCar.color);
System.out.println("Enter backwheels brand and diameter");
Wheel userBackWheels = new Wheel(sc.nextLine(), new Double(sc.nextLine()));
System.out.println("Your backwheels info --> " + userBackWheels.infoWheel());
System.out.println("Enter frontwheels brand and diameter");
Wheel userFrontWheels = new Wheel(sc.nextLine(), new Double(sc.nextLine()));
System.out.println("Your frontwheels info --> " + userFrontWheels.infoWheel());
sc.close();
}
}
0 个答案:
没有答案