bitmap-crop

Synopsis

(bitmap-crop bitmap row col height width)

Parameters

  • bitmap
  • row
  • col
  • height
  • width

Description

bitmap-crop returns a copy of a region of a bitmap. The region is defined by its position (row and col) and by the desired height and width). It is an error if a pixel of the requested region lies outside the bitmap where it should be copied from.

Side Effects

Return Value

The cropped region is returned as a new bitmap, the original position is remembered.

Example