Skip to content
This repository was archived by the owner on Oct 17, 2020. It is now read-only.
This repository was archived by the owner on Oct 17, 2020. It is now read-only.

Error when trying to crop: "undefined is not an object" on iOS #17

@geoffbullen

Description

@geoffbullen

Hi, I was attempting to extract regions from an image using crop(). I get the blow error from the bmp.insert line. This works on an android device, but not on iphone...

JS ERROR TypeError: undefined is not an object (evaluating 'this._nativeObject.size.width')

let bmp = BitmapFactory.create(500, 500);
bmp.dispose(function() {
    bmp.drawLine("0,150", "300,75", '#0000ff');   
    let leftTop = "0,0";
    let size = "50x50";
    let croppedImage = bmp.crop(leftTop,size);
    bmp.insert(croppedImage);                
});

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions