magick.util

Class MagickCanvas


public class MagickCanvas
extends Canvas

This class a specialisation of Canvas to display MagickImage in AWT.
Author:
Eric Yeo

Constructor Summary

MagickCanvas()
Constructor.

Method Summary

Dimension
getPreferredSize()
Return the preferred size of the Canvas.
void
paint(Graphics g)
Method to draw the image onto the Canvas.
void
setImage(MagickImage magickImage)
Set the viewing image.

Constructor Details

MagickCanvas

public MagickCanvas()
Constructor.

Method Details

getPreferredSize

public Dimension getPreferredSize()
Return the preferred size of the Canvas.

paint

public void paint(Graphics g)
Method to draw the image onto the Canvas.
Parameters:
g - the Graphics object for drawing

setImage

public void setImage(MagickImage magickImage)
Set the viewing image.
Parameters:
magickImage - the MagickImage to view