public abstract PixelFormat getPixelFormat ()

This method returns the PixelFormat in which the surface stores its pixels, or a roughly equivalent pixel format into which it can easily convert its pixels for purposes of reading them.

Returns:  the PixelFormat that best describes the underlying pixels