# File lib/gd2/image.rb, line 625 def resize!(w, h, resample = true) ptr = self.class.create_image_ptr(w, h, false) SYM[resample ? :gdImageCopyResampled : :gdImageCopyResized].call( ptr, image_ptr, 0, 0, 0, 0, w, h, width, height) alpha_blending = alpha_blending? init_with_image(ptr) self.alpha_blending = alpha_blending self end