Skip to content

Commit 5b60f6f

Browse files
committed
Add wait_for_exit() method
1 parent edb982a commit 5b60f6f

File tree

1 file changed

+1
-1
lines changed
  • examples/xtd.drawing.examples/graphics/graphics/src

1 file changed

+1
-1
lines changed

examples/xtd.drawing.examples/graphics/graphics/src/graphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ auto main() -> int {
1717
graphics.fill_rectangle(brushes::white(), drawing_bitmap.width() / 2 + 50, drawing_bitmap.height() - 140, 70, 60);
1818
graphics.fill_polygon(linear_gradient_brush {rectangle {drawing_bitmap.width() / 2 - 160, drawing_bitmap.height() - 300, 320, 120}, color::brown, color::sandy_brown, linear_gradient_mode::backward_diagonal}, array<point> {{drawing_bitmap.width() / 2, drawing_bitmap.height() - 300}, {drawing_bitmap.width() / 2 + 160, drawing_bitmap.height() - 180}, {drawing_bitmap.width() / 2 - 160, drawing_bitmap.height() - 180}});
1919
drawing_bitmap.save(path::combine(path::get_temp_path(), "graphics.png"));
20-
diagnostics::process::start(diagnostics::process_start_info {path::combine(path::get_temp_path(), "graphics.png")}.use_shell_execute(true));
20+
diagnostics::process::start(diagnostics::process_start_info {path::combine(path::get_temp_path(), "graphics.png")}.use_shell_execute(true)).wait_for_exit();
2121
}

0 commit comments

Comments
 (0)