public void DrawGrid(RegionBlock[][] regions) { for (int x = 0; x <= regions.GetUpperBound(0); x++) { for (int y = 0; y <= regions.GetUpperBound(1); y++) { Gdk.Image themap = new Gdk.Image(Gdk.ImageType.Fastest, Gdk.Visual.System, 256, 256); this.drawingarea1.GdkWindow.DrawImage(new Gdk.GC(this.drawingarea1.GdkWindow), themap, 0, 0, x * 256, y * 256, 256, 256); } } }
public void DrawGrid(RegionBlock[][] regions) { for (int x=0; x<=regions.GetUpperBound(0); x++) { for (int y=0; y<=regions.GetUpperBound(1); y++) { Gdk.Image themap = new Gdk.Image(Gdk.ImageType.Fastest,Gdk.Visual.System,256,256); this.drawingarea1.GdkWindow.DrawImage(new Gdk.GC(this.drawingarea1.GdkWindow),themap,0,0,x*256,y*256,256,256); } } }
public BitmapHandler(Gdk.Image image) { Create(image.Width, image.Height, image.BitsPerPixel == 32 ? PixelFormat.Format32bppRgb : PixelFormat.Format24bppRgb); Control.GetFromImage(image, image.Colormap ?? Gdk.Colormap.System, 0, 0, 0, 0, image.Width, image.Height); }
public Steganography(Gtk.Image image) { this.image = image; pixmap = new Gdk.Image (Gdk.ImageType.Normal, image.Visual, image.Pixbuf.Width, image.Pixbuf.Height); }