Getting the selected image's pixel data in PowerPoint Add-in with Office-js

Getting the selected image's pixel data in PowerPoint Add-in with Office-js
0

Upvotes

Upvote

 Jan 07 2022
0 Comments 
New

I want to develop a PowerPoint Add-in that applies visual effects on the selected image in a PowerPoint slide and insert it as a separate image. Therefore, I need to get the pixel data to process it.

I tried to use getDataAsync function but when I change the CoercionType to Image, I got an error that this coercion type is not supported. I searched the Office-js documents and found nothing to get the image's pixel values.

It would be very useful to have a functionality to get the pixel data of the images on a slide.