public abstract PixelFormat getPixelFormat ()

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

Returns:  the PixelFormat that best describes the underlying pixels