org.apache.poi.hwpf.model
Class PictureDescriptor

java.lang.Object
  extended by org.apache.poi.hwpf.model.PictureDescriptor
Direct Known Subclasses:
Picture

@Internal
public class PictureDescriptor
extends java.lang.Object

Picture Descriptor (on File) (PICF)

Based on Microsoft Office Word 97-2007 Binary File Format (.doc) Specification; Page 181 of 210

Author:
Sergey Vladimirov ( vlsergey {at} gmail {dot} com )

Field Summary
protected  int cbHeader
          Number of bytes in the PIC (to allow for future expansion).
protected  short dxaCropLeft
          The amount the picture has been cropped on the left in twips
protected  short dxaCropRight
          The amount the picture has been cropped on the right in twips
protected  short dxaGoal
          Horizontal measurement in twips of the rectangle the picture should be imaged within
protected  short dyaCropBottom
          The amount the picture has been cropped on the bottom in twips
protected  short dyaCropTop
          The amount the picture has been cropped on the top in twips
protected  short dyaGoal
          Vertical measurement in twips of the rectangle the picture should be imaged within
protected  int lcb
          Number of bytes in the PIC structure plus size of following picture data which may be a Window's metafile, a bitmap, or the filename of a TIFF file.
protected  int mfp_hMF
           
protected  int mfp_mm
           
protected  int mfp_xExt
           
protected  int mfp_yExt
           
protected  short mx
          Horizontal scaling factor supplied by user expressed in .001% units
protected  short my
          Vertical scaling factor supplied by user expressed in .001% units
protected  byte[] offset14
          Window's bitmap structure when PIC describes a BITMAP (14 bytes) Rectangle for window origin and extents when metafile is stored -- ignored if 0 (8 bytes)
 
Constructor Summary
PictureDescriptor()
           
PictureDescriptor(byte[] _dataStream, int startOffset)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lcb

protected int lcb
Number of bytes in the PIC structure plus size of following picture data which may be a Window's metafile, a bitmap, or the filename of a TIFF file. In the case of a Macintosh PICT picture, this includes the size of the PIC, the standard "x" metafile, and the Macintosh PICT data. See Appendix B for more information.


cbHeader

protected int cbHeader
Number of bytes in the PIC (to allow for future expansion).


mfp_mm

protected int mfp_mm

mfp_xExt

protected int mfp_xExt

mfp_yExt

protected int mfp_yExt

mfp_hMF

protected int mfp_hMF

offset14

protected byte[] offset14
  • Window's bitmap structure when PIC describes a BITMAP (14 bytes)
  • Rectangle for window origin and extents when metafile is stored -- ignored if 0 (8 bytes)


  • dxaGoal

    protected short dxaGoal
    Horizontal measurement in twips of the rectangle the picture should be imaged within


    dyaGoal

    protected short dyaGoal
    Vertical measurement in twips of the rectangle the picture should be imaged within


    mx

    protected short mx
    Horizontal scaling factor supplied by user expressed in .001% units


    my

    protected short my
    Vertical scaling factor supplied by user expressed in .001% units


    dxaCropLeft

    protected short dxaCropLeft
    The amount the picture has been cropped on the left in twips


    dyaCropTop

    protected short dyaCropTop
    The amount the picture has been cropped on the top in twips


    dxaCropRight

    protected short dxaCropRight
    The amount the picture has been cropped on the right in twips


    dyaCropBottom

    protected short dyaCropBottom
    The amount the picture has been cropped on the bottom in twips

    Constructor Detail

    PictureDescriptor

    public PictureDescriptor()

    PictureDescriptor

    public PictureDescriptor(byte[] _dataStream,
                             int startOffset)
    Method Detail

    toString

    public java.lang.String toString()
    Overrides:
    toString in class java.lang.Object


    Copyright 2011 The Apache Software Foundation or its licensors, as applicable.