25 img.filledRectangle(0, 0, 400, 300,
TColor(0x50, 0x50, 0x50));
28 img.selectTextFont(
"5x7");
29 img.textOut(10,
y,
"Hello World! with font \"5x7\"", TColor::white());
32 img.selectTextFont(
"6x13");
33 img.textOut(10,
y,
"Hello World! with font \"6x13\"", TColor::white());
36 img.selectTextFont(
"6x13B");
37 img.textOut(10,
y,
"Hello World! with font \"6x13B\"", TColor::white());
40 img.selectTextFont(
"6x13O");
41 img.textOut(10,
y,
"Hello World! with font \"6x13O\"", TColor::white());
44 img.selectTextFont(
"9x15");
45 img.textOut(10,
y,
"Hello World! with font \"9x15\"", TColor::white());
48 img.selectTextFont(
"9x15B");
49 img.textOut(10,
y,
"Hello World! with font \"9x15B\"", TColor::white());
52 img.selectTextFont(
"18x18ja");
53 img.textOut(10,
y,
"MRPTのフォントは易しいです!", TColor::white());
56 img.selectTextFont(
"10x20");
57 img.textOut(10,
y,
"Hello World! with font \"10x20\"", TColor::white());
64 cout <<
"Push a key in the console or in the window to continue...";
66 cout <<
"Done" << endl;
79 catch (std::exception& e)
81 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
86 printf(
"Untyped exception!!");
This class creates a window as a graphical user interface (GUI) for displaying images to the user...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Classes for creating GUI windows for 2D and 3D visualization.
A class for storing images as grayscale or RGB bitmaps.