Types
Image = ptr BLImageCore
ImageData = ptr BLImageData
Procs
proc destroyImage(img: Image) {....raises: [], tags: [], forbids: [].}
proc getAspectRatio(width, height, minWidth, minHeight: int): (int, int) {. ...raises: [], tags: [], forbids: [].}
proc resize(img: Image; width, height: int32; scaleFilter: BLImageScaleFilter = BLImageScaleFilterNearest): Image {. discardable, ...raises: [], tags: [], forbids: [].}
- Resize an image by maintaining the aspect ratio and returns a new Image
proc resize(img: var Image; width, height: int32; scaleFilter: BLImageScaleFilter = BLImageScaleFilterNearest) {. ...raises: [], tags: [], forbids: [].}
- Resize a mutable image, keeping the aspect ratio