File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -249,26 +249,26 @@ int main(void) {
249249 bmp::Bitmap image;
250250
251251 // Load the original bitmap
252- image.load("penguin.bmp");
252+ image.load(std::filesystem::path(ROOT_DIR) / "images" / "penguin.bmp");
253253
254254 // Test vertical flip
255255 bmp::Bitmap flipped_v = image.flip_v();
256- flipped_v.save(" rotated/ penguin_flipped_v.bmp");
256+ flipped_v.save(std::filesystem::path(ROOT_DIR) / "images" / " rotated" / " penguin_flipped_v.bmp");
257257 std::cout << "Vertical flip saved as penguin_flipped_v.bmp" << std::endl;
258258
259259 // Test horizontal flip
260260 bmp::Bitmap flipped_h = image.flip_h();
261- flipped_h.save(" rotated/ penguin_flipped_h.bmp");
261+ flipped_h.save(std::filesystem::path(ROOT_DIR) / "images" / " rotated" / " penguin_flipped_h.bmp");
262262 std::cout << "Horizontal flip saved as penguin_flipped_h.bmp" << std::endl;
263263
264264 // Test rotate 90 degrees to the right
265265 bmp::Bitmap rotated_right = image.rotate_90_right();
266- rotated_right.save(" rotated/ penguin_rotated_right.bmp");
266+ rotated_right.save(std::filesystem::path(ROOT_DIR) / "images" / " rotated" / " penguin_rotated_right.bmp");
267267 std::cout << "Rotated 90 degrees right saved as penguin_rotated_right.bmp" << std::endl;
268268
269269 // Test rotate 90 degrees to the left
270270 bmp::Bitmap rotated_left = image.rotate_90_left();
271- rotated_left.save(" rotated/ penguin_rotated_left.bmp");
271+ rotated_left.save(std::filesystem::path(ROOT_DIR) / "images" / " rotated" / " penguin_rotated_left.bmp");
272272 std::cout << "Rotated 90 degrees left saved as penguin_rotated_left.bmp" << std::endl;
273273
274274 return EXIT_SUCCESS;
You can’t perform that action at this time.
0 commit comments