module ChunkyPNG::Canvas::Operations

def trim(border = pixels.first)

Other tags:
    See: #trim! -

Returns:
  • (ChunkyPNG::Canvas) - The trimmed image.

Parameters:
  • border (Integer) -- The color to attempt to trim.
def trim(border = pixels.first)
  dup.trim!
end