jxUtil 0.6

org.sourceforge.jxutil.net.xfs
Class XFSDataTypes.BITMAPFORMAT

java.lang.Object
  |
  +--org.sourceforge.jxutil.net.xfs.XFSDataTypes.XFSDataType
        |
        +--org.sourceforge.jxutil.net.xfs.XFSDataTypes.CARD32
              |
              +--org.sourceforge.jxutil.net.xfs.XFSDataTypes.BITMAPFORMAT
Enclosing class:
XFSDataTypes

public static final class XFSDataTypes.BITMAPFORMAT
extends XFSDataTypes.CARD32

This structure specifies how glyph images are transmitted in response to QueryXBitmaps8 and QueryXBitmaps16 requests. CARD32 containing the following fields defined by the sets of values given further below.
All unspecified bits must be zero.
Use of an invalid BITMAPFORMAT causes a Format error to be returned.

BITMAPFORMAT: CARD32

NB:BITMAPFORMAT is represented internally as a Java long.


Field Summary
static int BitOrderMSB
          If the BIT-ORDER-MSB bit is set, the left-most bit in each glyph scanline unit is stored in the Most Significant Bit of each transmitted scanline unit.
static int ByteOrderMSB
          If the BYTE-ORDER-MSB bit is set, the Most Significant Byte of each scanline unit is returned first.
static int ImageRectMax
          This refers to all scanlines, from the maximum ascent (or the font ascent, whichever is greater) to the maximum descent (or the font descent, whichever is greater), padded to the same horizontal extents as MaxWidth.
static int ImageRectMaxWidth
          This refers to the scanlines between the glyph s ascent and descent, padded on the left to the minimum left-bearing (or 0, whichever is less) and on the right to the maximum right-bearing (or logical-width, whichever is greater).
static int ImageRectMin
          This refers to the minimal bounding rectangle surrounding the inked pixels in the glyph.
static int ScanlinePad16
          The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting.
static int ScanlinePad32
          The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting.
static int ScanlinePad64
          The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting.
static int ScanlinePad8
          The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting.
static int ScanlineUnit16
          The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping.
static int ScanlineUnit32
          The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping.
static int ScanlineUnit64
          The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping.
static int ScanlineUnit8
          The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping.
 
Fields inherited from class org.sourceforge.jxutil.net.xfs.XFSDataTypes.CARD32
bytes
 
Constructor Summary
XFSDataTypes.BITMAPFORMAT()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BitOrderMSB

public static final int BitOrderMSB
If the BIT-ORDER-MSB bit is set, the left-most bit in each glyph scanline unit is stored in the Most Significant Bit of each transmitted scanline unit. Otherwise, the left-most bit is stored in the Least Significant Bit.

See Also:
Constant Field Values

ByteOrderMSB

public static final int ByteOrderMSB
If the BYTE-ORDER-MSB bit is set, the Most Significant Byte of each scanline unit is returned first. Otherwise, the Least Significant Byte is returned first.

See Also:
Constant Field Values

ImageRectMax

public static final int ImageRectMax
This refers to all scanlines, from the maximum ascent (or the font ascent, whichever is greater) to the maximum descent (or the font descent, whichever is greater), padded to the same horizontal extents as MaxWidth. The IMAGE-RECT field specifies a rectangle of pixels within the glyph image.
For a glyph with extents XCHARINFO in a font with header information XFONTINFO, the IMAGE-RECT values have the following meaning:

ImageRectMax: All glyph images have the same sized bitmap and share a common origin. This is the least compact representation, but may be the easiest or most efficient (particularly for character cell fonts) for some clients to use. The edges of the rectangle are:
leftmin (XFONTINFO.MIN-BOUNDS.LBEARING, 0)
rightmax (XFONTINFO.MAX-BOUNDS.RBEARING, XFONTINFO.MAX-BOUNDS.WIDTH)
topmax (XFONTINFO.FONT-ASCENT, XFONTINFO.MAX-BOUNDS.ASCENT)
bottommax (XFONTINFO.FONT-DESCENT, XFONTINFO.MAX-BOUNDS.DESCENT)

See Also:
Constant Field Values

ImageRectMaxWidth

public static final int ImageRectMaxWidth
This refers to the scanlines between the glyph s ascent and descent, padded on the left to the minimum left-bearing (or 0, whichever is less) and on the right to the maximum right-bearing (or logical-width, whichever is greater). The IMAGE-RECT field specifies a rectangle of pixels within the glyph image.
For a glyph with extents XCHARINFO in a font with header information XFONTINFO, the IMAGE-RECT values have the following meaning:

ImageRectMaxWidth: All glyph images share a common horizontal origin. This is a combination of ImageRectMax in the horizontal direction and ImageRectMin in the vertical direction. The edges of the rectangle are:
leftmin (XFONTINFO.MIN-BOUNDS.LBEARING, 0)
rightmax (XFONTINFO.MAX-BOUNDS.RBEARING, XFONTINFO.MAX-BOUNDS.WIDTH)
topXCHARINFO.ASCENT
bottomXCHARINFO.DESCENT

See Also:
Constant Field Values

ImageRectMin

public static final int ImageRectMin
This refers to the minimal bounding rectangle surrounding the inked pixels in the glyph. The IMAGE-RECT field specifies a rectangle of pixels within the glyph image.
For a glyph with extents XCHARINFO in a font with header information XFONTINFO, the IMAGE-RECT values have the following meaning:

ImageRectMin: This is the most compact representation. The edges of the rectangle are:
leftXCHARINFO.LBEARING
rightXCHARINFO.RBEARING
topXCHARINFO.ASCENT
bottomXCHARINFO.DESCENT

See Also:
Constant Field Values

ScanlinePad16

public static final int ScanlinePad16
The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting.

See Also:
Constant Field Values

ScanlinePad32

public static final int ScanlinePad32
The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting.

See Also:
Constant Field Values

ScanlinePad64

public static final int ScanlinePad64
The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting.

See Also:
Constant Field Values

ScanlinePad8

public static final int ScanlinePad8
The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting.

See Also:
Constant Field Values

ScanlineUnit16

public static final int ScanlineUnit16
The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping. This value must be less than or equal to the number of bits specified by the SCANLINE-PAD.

See Also:
Constant Field Values

ScanlineUnit32

public static final int ScanlineUnit32
The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping. This value must be less than or equal to the number of bits specified by the SCANLINE-PAD.

See Also:
Constant Field Values

ScanlineUnit64

public static final int ScanlineUnit64
The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping. This value must be less than or equal to the number of bits specified by the SCANLINE-PAD.

See Also:
Constant Field Values

ScanlineUnit8

public static final int ScanlineUnit8
The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping. This value must be less than or equal to the number of bits specified by the SCANLINE-PAD.

See Also:
Constant Field Values
Constructor Detail

XFSDataTypes.BITMAPFORMAT

public XFSDataTypes.BITMAPFORMAT()

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.