Highlighted

getImageData of specific movie clip

Community Beginner ,
Oct 23, 2019

Copy link to clipboard

Copied

Hi

 

Is there a way to have getImageData of an specific movie clip instane, without having multiple hidden canvases ?

for example:

var targetData = this.mapMc.children[0].image.getImageData(0, 0, 200, 200);

 

Best regards

Views

95

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

getImageData of specific movie clip

Community Beginner ,
Oct 23, 2019

Copy link to clipboard

Copied

Hi

 

Is there a way to have getImageData of an specific movie clip instane, without having multiple hidden canvases ?

for example:

var targetData = this.mapMc.children[0].image.getImageData(0, 0, 200, 200);

 

Best regards

Views

96

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 23, 2019 0
Adobe Community Professional ,
Oct 23, 2019

Copy link to clipboard

Copied

getImageData retrieves pixels from a canvas object. So you're asking if you can get data from a canvas without having a canvas.

 

No. No you cannot.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 23, 2019 0
New Here ,
Oct 25, 2019

Copy link to clipboard

Copied

Thank You good sir.

Does that mean, if i want to mix pixel data from difrent layers do i need to have multiple hidden cnavases of that objects alone ?

Would that be the only and efficient way ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 25, 2019 0