public static void AppResizeHandler(Enlightenment.Ecore.Canvas ee) { int w, h; Box box; w = Application.EE.Geometry.W; h = Application.EE.Geometry.H; box = (Box)Application.EE.DataGet("box_icons"); box.Resize(box.Geometry.W, h - 37); box = (Box)Application.EE.DataGet("box_left"); box.Resize(box.Geometry.W, h - 37); box = (Box)Application.EE.DataGet("box_images"); box.Resize(w - 70 - 2, h - 37 - 2); Edje win_bg = (Edje)Application.EE.DataGet("win_bg"); win_bg.Resize(w, h); imageTable.Resize(w - 60 - 2, h - 37 - 2); MenuBar mb = (MenuBar)Application.EE.DataGet("mb"); mb.Resize(w, mb.Geometry.H); }
public static void AppResizeHandler(Enlightenment.Ecore.Canvas ee) { int x, y, w, h; Rectangle rect = (Rectangle)EE.DataGet("bg_rect"); EE.GeometryGet(out x, out y, out w, out h); rect.Resize(w, h); rect = (Rectangle)EE.DataGet("left_toolbar"); rect.Resize(100, h); rect = (Rectangle)EE.DataGet("top_toolbar"); rect.Resize(w, 50); cont.Resize(w - 100, h - 50); }
public static void Main(string [] args) { Enlightenment.Ecore.Canvas.Init(); Enlightenment.Ecore.Canvas EE = new Enlightenment.Ecore.Canvas(); EE.SoftwareX11New(":0", IntPtr.Zero, 0, 0, 800, 600); Image im = new Image(EE.Get()); im.Set("/tmp/test.png", null); int[] pixels = new int[im.Geometry.W * im.Geometry.H]; pixels = im.PixelsGet(1); // play around here. im.PixelsSet(pixels); }