i m searching for an effect

i have an image(black background) with an staircase (in white)with (a walk==8pixels).
i want an effect in opengl , devil or any other way to modify this image to staircase line(not nessecerly line, but please not this squares).

I really have no clue what you mean. Screenshot available?