Milena (Olena)  User documentation 2.0a Id
win-create-2.cc
00001 #include <mln/core/alias/window2d.hh>
00002 #include <mln/convert/to.hh>
00003 
00004 int main()
00005 {
00006   using namespace mln;
00007 
00008   // \{
00009   bool b[9]     =   { 1, 0, 0,
00010                       1, 0, 0,
00011                       1, 0, 0 };
00012 
00013   bool b2[3][3] = { { 1, 0, 0 },
00014                     { 1, 0, 0 },
00015                     { 1, 0, 0 } };
00016 
00017   window2d win = convert::to<window2d>(b);
00018   window2d win2 = convert::to<window2d>(b2);
00019   // \}
00020 
00021 }
 All Classes Namespaces Functions Variables Typedefs Enumerator