Class Reference

DK_ImageCanvas

DK_ImageCanvas is a data class that handles canvases in which DK_Image objects can be drawn. It is a subclass of DK_Canvas.

Constructor

DK_ImageCanvas( DK_ToolGUI &owner,
                const char *name,
                Widget parent = NULL,
                Arg *args = NULL
                Cardinal nargs = 0);
Creates a DK_ImageCanvas object with the specified name and owned by the specified DK_ToolGUI. You can optionally attach the DK_ImageCanvas object as a child of a widget.

resetPan

void resetPan ( void );
Resets the panning. The origin of the canvas is moved to the bottom left of the window pane.

resetZoom

void resetZoom( void );
Sets the zoom factor to one.

zoomIn

void zoomIn ( const DK_IVector2 &aroundPoint);
Zooms in by one level around the specified point.

zoomOut

void zoomOut ( const DK_IVector2 &aroundPoint);
Zooms out by one level around the specified point.

pan

void pan ( DK_Vector2 &toPnt, 
           const DK_Vector2 &fromPnt);
Pans from the second point to the first point. Note that the first point is the requested the requested destination; because this is a point in ortho space (image space), it might not map to screen space exactly. Eddie returns the actual destination in ortho space in the first argument.

pickColour

Boolval pickColour ( const DK_IVector2& pos, 
               class DK_Colour& colour );
Returns the RGBA colour values at the pixel defined by the pos argument in ortho space (image space). The returned colour includes teh alpha component of th image at that position.

Constructor
resetPan
resetZoom
zoomIn
zoomOut
pan
pickColour

SOFTIMAGE Eddie 3.5 - 10 JAN 1997