checkAssert method

void checkAssert()

Implementation

void checkAssert() {
  assert(width > 0 && height > 0, "The width and height must better 0.");
  assert(quality > 0 && quality <= 100, "The quality must between 0 and 100");
}