# File lib/gd2/image.rb, line 597 def crop!(x, y, w, h) ptr = self.class.create_image_ptr(w, h, alpha_blending?) SYM[:gdImageCopy].call(ptr, image_ptr, 0, 0, x, y, w, h) init_with_image(ptr) end