hmmm... Not sure if this is what you need, but maybe take a look at the "GraphicsTest" example of u8glib.
Oliver