Hello Mike!
Yes, PixelMath can create and display also a diagonal Profile.
For example a Profile from bottom left to top right -
Only the first PixelMath Expression changes to:
pixel($T,xpos(),height($T) - (xpos() * (height($T) / width($T))) )
The second Expression stays the same:
iif(abs((1-$T)*height($T)) > ypos(),0,$T)
I do have many of this kind of macros in ONE xpsm Folder. At the beginning of each processing i drag and drop
this single macrofolder on the Workspace.
So i dont have to search for the PixelMath-, Starmask-, Stretching- etc. macros.
Gerald