public Image(int width, int height, int format, Pixmap.Format pixmap_format) { this.width = width; this.height = height; this.format = format; this.pixmap_format = pixmap_format; init(); }
public ZPixmap(Display display, int width, int height, Pixmap.Format format) : base(width, height, FORMAT, format) { image_byte_order = display.image_byte_order; pixel_byte_count = pixmap_format.bits_per_pixel() / 8; if (display.default_depth < 24) { throw new Error("Unsupported root depth < 24: " + display.default_depth); } }