Class PictFormat

  extended by gnu.x11.extension.render.PictFormat

public class PictFormat
extends java.lang.Object

Format specification for Picture instances. This class cannot be instantiated directly. Instead you can query the available formats by using Render#get_picture_formats() and use one of those. In order to make format selection easier, you can create a PictFormat.Template and use Render.picture_format(gnu.x11.extension.render.PictFormat.Template, boolean) to select a matching format.

Nested Class Summary
static class PictFormat.Direct
          Parameters for direct color models to describe the data layout of pixel samples.
static class PictFormat.Template
          A template for selecting PictFormat instances in Render.picture_format(gnu.x11.extension.render.PictFormat.Template, boolean).
static class PictFormat.Type
          The different types of formats.
Field Summary
static PictFormat NONE
          Indicates that no format should be used.
Method Summary
 int depth()
 PictFormat.Direct direct_format()
 java.lang.String toString()
          Returns a string representation of this PictFormat instance.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


public static final PictFormat NONE
Indicates that no format should be used. This is only valid in some operationes, for example in Render.composite_glyphs(int, gnu.x11.extension.render.Picture, gnu.x11.extension.render.Picture, gnu.x11.extension.render.PictFormat, gnu.x11.extension.render.GlyphSet, int, int, int, int, gnu.x11.extension.render.Glyph[]).

Method Detail


public int depth()


public java.lang.String toString()
Returns a string representation of this PictFormat instance.

toString in class java.lang.Object


public PictFormat.Direct direct_format()