Image documents are the base containers for image displays
and other components. Each image document has a root component
that can be accessed via ImageDocumentGetRootComponent,
in
which image displays may be placed. The child coordinate system
of this annotation is called page coordinates.
This coordinate system has arbitrary units and origin, but these
are given a physical interpretation when the document is first
viewed in page mode or the method ImageDocumentEnsurePlacedOnPage
is first called, at which point ImageDocumentGetPageBounds
will return the rectangle of the printable page expressed in page
coordinates.
An image document may be viewed in its entirety in page mode,
or one of its top-level image displays may be viewed in image
mode. The coordinate system used to express the the portion of
the document currently viewed in the window is view
coordinates. In page mode this is equivalent to page
coordinates; in image mode it has no equivalent, but methods
like ComponentGetBoundingRectInView
can be used to interpret the coordinates in terms of the visible
components. View coordinates can be related to window coordinates
by finding the currently visible area in view coordinates using
ImageDocumentGetVisibleViewRect
,
and then by finding the visible area in screen coordinates using
ImageDocumentGetWindow
to get the
document's window and DocumentWindowGetSize
to get the size of the interior of the window. Each image document
mode has a reference point size, which is the height of one text
point, and a minimum resolution, which is the size of a pixel
in the appropriate drawing surface. The reference point size in
view coordinates is given by ImageDocumentGetReferencePointSize
,
and the minimum point size in view coordinates by ImageDocumentGetMinimumPointSize
.
In image mode, both the reference point and the minimum point
are one screen pixel. In page mode, the reference point size is the
size of a dot at 72dpi ( before any scaling specified in the print
dialog ), and the minimum point size is the dot size of the selected
printer.
void ImageDocumentAddImage( ImageDocument imgDoc,
ImageReference image )
ImageDisplay ImageDocumentAddImageDisplay( ImageDocument
imgDoc, ImageReference image, Number displayType )
void ImageDocumentAddToUserInterface( ImageDocument
imgDoc )
void ImageDocumentClean( ImageDocument imgDoc
)
ImageDocument ImageDocumentClone( ImageDocument
imgDoc, Boolean doDeepCopy )
void ImageDocumentClose( ImageDocument imgDoc,
Boolean saving )
Number ImageDocumentCountImages( ImageDocument
imgDoc )
ImageReference ImageDocumentCreateRGBImageFromDocument(
ImageDocument imgDoc, Number width, Number height,
Number extract_style, Number constraints )
void ImageDocumentDeleteImage( ImageDocument imgDoc,
ImageReference image )
Boolean ImageDocumentDoesImageWithIDExist( ImageDocument
imgDoc, Number id )
void ImageDocumentEnsurePlacedOnPage( ImageDocument
imgDoc )
Number ImageDocumentGetAsPICT( ImageDocument imgDoc
)
Component ImageDocumentGetComponentByID( ImageDocument
imgDoc, Number id )
Number ImageDocumentGetID( ImageDocument imgDoc
)
ImageReference ImageDocumentGetImage( ImageDocument
imgDoc, Number position )
ImageReference ImageDocumentGetImageByID( ImageDocument
imgDoc, Number id )
ImageDisplay ImageDocumentGetImageModeDisplay( ImageDocument
imgDoc )
void ImageDocumentGetMinimumPointSize( ImageDocument
imgDoc, NumberVariable x, NumberVariable y )
String ImageDocumentGetName( ImageDocument imgDoc
)
void ImageDocumentGetPageBounds( ImageDocument
imgDoc, NumberVariable top, NumberVariable left,
NumberVariable bottom, NumberVariable right )
void ImageDocumentGetPageResolution_72dpi( ImageDocument
imgDoc, NumberVariable horz, NumberVariable vert )
void ImageDocumentGetPageResolution_Printer( ImageDocument
imgDoc, NumberVariable horz, NumberVariable vert )
void ImageDocumentGetPaperBounds( ImageDocument
imgDoc, NumberVariable top, NumberVariable left,
NumberVariable bottom, NumberVariable right )
void ImageDocumentGetPreferredViewRect( ImageDocument
imgDoc, NumberVariable top, NumberVariable left,
NumberVariable bottom, NumberVariable right )
void ImageDocumentGetReferencePointSize( ImageDocument
imgDoc, NumberVariable x, NumberVariable y )
Component ImageDocumentGetRootComponent( ImageDocument
imgDoc )
TagGroup ImageDocumentGetTagGroup( ImageDocument
imgDoc )
void ImageDocumentGetUnzoomedPointSize( ImageDocument
imgDoc, NumberVariable x, NumberVariable y )
void ImageDocumentGetViewExtent( ImageDocument
imgDoc, NumberVariable top, NumberVariable left,
NumberVariable bottom, NumberVariable right )
void ImageDocumentGetViewToWindowTransform( ImageDocument
imgDoc, NumberVariable off_x, NumberVariable off_y,
NumberVariable scale_x, NumberVariable scale_y )
void ImageDocumentGetVisibleViewRect( ImageDocument
imgDoc, NumberVariable top, NumberVariable left,
NumberVariable bottom, NumberVariable right )
DocumentWindow ImageDocumentGetWindow( ImageDocument
imgDoc )
Boolean ImageDocumentHasBeenPlacedOnPage( ImageDocument
imgDoc )
void ImageDocumentHide( ImageDocument imgDoc
)
Boolean ImageDocumentIsInImageMode( ImageDocument
imgDoc )
Boolean ImageDocumentIsInPageMode( ImageDocument
imgDoc )
Boolean ImageDocumentIsValid( ImageDocument imgDoc
)
void ImageDocumentMaximizeRectInView( ImageDocument
imgDoc, Number top, Number left, Number
bottom, Number right )
Boolean ImageDocumentPrint( ImageDocument imgDoc
)
void ImageDocumentRemoveFromUserInterface( ImageDocument
imgDoc )
void ImageDocumentSaveToFile( ImageDocument imgDoc,
String handler, String fileName )
void ImageDocumentSetCurrentViewAsUnzoomed( ImageDocument
imgDoc )
void ImageDocumentSetName( ImageDocument imgDoc,
String name )
void ImageDocumentSetRectInView( ImageDocument
imgDoc, Number v_t, Number v_l, Number v_b,
Number v_r, Number w_t, Number w_l, Number
w_b, Number w_r )
DocumentWindow ImageDocumentShow( ImageDocument
imgDoc )
DocumentWindow ImageDocumentShowAtPosition( ImageDocument
imgDoc, Number x, Number y )
DocumentWindow ImageDocumentShowAtRect( ImageDocument
imgDoc, Number top, Number left, Number
bottom, Number right )
void ImageDocumentSwitchToImageMode( ImageDocument
imgDoc, ImageDisplay imgDisp )
void ImageDocumentSwitchToPageMode( ImageDocument
imgDoc )
void ImageDocumentUpdateDisplay( ImageDocument
imgDoc )
ImageDocument =( ImageDocument, ! )
ImageDocument =( ImageDocument, ImageDocument )
ImageDocument CreateImageDocument( String title
)
ImageDocument GetFrontImageDocument( )
ImageDocument GetImageDocument( Number position
)
ImageDocument GetImageDocumentByID( Number id
)
ImageDocument ImageDocumentNullify( ! )
ImageDocument ImageWindowGetImageDocument( DocumentWindow
window )
ImageDocument NewImageDocument( String title
)
ImageDocument NewImageDocumentFromFile( String
path_name )