Method: FreeImage::Modify#paste!

Defined in:
lib/free-image/modules/modify.rb

#paste!(other, left, top, alpha) ⇒ Object

Combines or blends a subpart of another image with the current image.

Parameters:

other

Source subimage

left

Specifies the left position of the sub image.

top

Specifies the top position of the sub image.

alpha

Alpha blend factor. If alpha is 0..255, the other images is

alpha blended withe current image. If alpha > 255, then
the other image is combined to the current image.

The function returns true if successful, otherwise false.



231
232
233
234
235
# File 'lib/free-image/modules/modify.rb', line 231

def paste!(other, left, top, alpha)
  result = FreeImage.FreeImage_Paste(self, other, left, top, alpha)
  FreeImage.check_last_error
  result
end