I'm trying to write a macro in PowerPoint that, for each picture, iterates over each pixel so as to get the current color of each pixel and then be able to change the color. I have found some references about how to do this in VBA, but they refer to Excel, so many functions are not applicable in my case in PowerPoint.
I am not quite familiar with PowerPoint VBA, but my approach was:
Sub ChangeColor()
Dim oshp As Shape
Dim osld As Slide
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Name Like "Picture*" Then
'FUNCTION TO ITERATE OVER PIXELS AND CHANGE COLOR OF EACH PIXEL
End If
Next oshp
Next osld
End Sub
However, I don't know how to iterate over pixels. Can somebody help me to understand how can I do this?
Many thanks in advance!