public PixelRgn(Drawable drawable, int x, int y, int width, int height, bool dirty, bool shadow) { pr = (GimpPixelRgn *)g_malloc(sizeof(GimpPixelRgn)); gimp_pixel_rgn_init(ref *pr, drawable.Ptr, x, y, width, height, dirty, shadow); _bpp = (int)pr->bpp; _dummy = new byte[pr->bpp]; _dirty = dirty; _drawable = drawable; }
public PixelRgn(Drawable drawable, int x, int y, int width, int height, bool dirty, bool shadow) { pr = (GimpPixelRgn*)g_malloc(sizeof(GimpPixelRgn)); gimp_pixel_rgn_init(ref *pr, drawable.Ptr, x, y, width, height, dirty, shadow); _bpp = (int) pr->bpp; _dummy = new byte[pr->bpp]; _dirty = dirty; _drawable = drawable; }