File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -249,26 +249,26 @@ int main(void) {
249
249
bmp::Bitmap image;
250
250
251
251
// Load the original bitmap
252
- image.load("penguin.bmp");
252
+ image.load(std::filesystem::path(ROOT_DIR) / "images" / "penguin.bmp");
253
253
254
254
// Test vertical flip
255
255
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");
257
257
std::cout << "Vertical flip saved as penguin_flipped_v.bmp" << std::endl;
258
258
259
259
// Test horizontal flip
260
260
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");
262
262
std::cout << "Horizontal flip saved as penguin_flipped_h.bmp" << std::endl;
263
263
264
264
// Test rotate 90 degrees to the right
265
265
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");
267
267
std::cout << "Rotated 90 degrees right saved as penguin_rotated_right.bmp" << std::endl;
268
268
269
269
// Test rotate 90 degrees to the left
270
270
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");
272
272
std::cout << "Rotated 90 degrees left saved as penguin_rotated_left.bmp" << std::endl;
273
273
274
274
return EXIT_SUCCESS;
You can’t perform that action at this time.
0 commit comments