mxGraph
Public Member Functions | Protected Attributes | Properties | List of all members
com.mxgraph.mxImageCanvas Class Reference

Implements a canvas that draws onto an image. More...

Inheritance diagram for com.mxgraph.mxImageCanvas:
com.mxgraph.mxICanvas

Public Member Functions

 mxImageCanvas (mxGdiCanvas canvas, int width, int height, Color? background, bool antiAlias)
 
Object DrawCell (mxCellState state)
 see com.mxgraph.mxICanvas.DrawCell() More...
 
Object DrawLabel (string text, mxCellState state, bool html)
 see com.mxgraph.mxICanvas.DrawLabel() More...
 
Image Destroy ()
 Destroys this canvas and all allocated resources. More...
 

Protected Attributes

mxGdiCanvas canvas
 Inner canvas used for the actual rendering. More...
 
Graphics previousGraphics
 Stores the previous graphics reference of the inner canvas. More...
 
Image image
 Stores the image that holds the graphics. More...
 

Properties

mxGdiCanvas GdiCanvas [get]
 Returns the inner canvas. More...
 
Image Image [get]
 Returns the image that hold the graphics. More...
 
Point Translate [get, set]
 see com.mxgraph.mxICanvas.Translate More...
 
double Scale [get, set]
 see com.mxgraph.mxICanvas.Translate More...
 
- Properties inherited from com.mxgraph.mxICanvas
Point Translate [get, set]
 Sets or returns the user object of the cell. More...
 
double Scale [get, set]
 Sets or returns the user object of the cell. More...
 

Detailed Description

Implements a canvas that draws onto an image.

Constructor & Destructor Documentation

◆ mxImageCanvas()

com.mxgraph.mxImageCanvas.mxImageCanvas ( mxGdiCanvas  canvas,
int  width,
int  height,
Color?  background,
bool  antiAlias 
)
inline

Parameters
canvas
width
height
background
antiAlias

References com.mxgraph.mxUtils.CreateImage(), and com.mxgraph.mxGdiCanvas.Graphics.

Member Function Documentation

◆ Destroy()

Image com.mxgraph.mxImageCanvas.Destroy ( )
inline

Destroys this canvas and all allocated resources.

References com.mxgraph.mxGdiCanvas.Graphics.

Referenced by com.mxgraph.mxCellRenderer.CreateImage().

◆ DrawCell()

Object com.mxgraph.mxImageCanvas.DrawCell ( mxCellState  state)
inline

◆ DrawLabel()

Object com.mxgraph.mxImageCanvas.DrawLabel ( string  text,
mxCellState  state,
bool  html 
)
inline

Member Data Documentation

◆ canvas

mxGdiCanvas com.mxgraph.mxImageCanvas.canvas
protected

Inner canvas used for the actual rendering.

◆ image

Image com.mxgraph.mxImageCanvas.image
protected

Stores the image that holds the graphics.

◆ previousGraphics

Graphics com.mxgraph.mxImageCanvas.previousGraphics
protected

Stores the previous graphics reference of the inner canvas.

Property Documentation

◆ GdiCanvas

mxGdiCanvas com.mxgraph.mxImageCanvas.GdiCanvas
get

Returns the inner canvas.

◆ Image

Image com.mxgraph.mxImageCanvas.Image
get

Returns the image that hold the graphics.

◆ Scale

double com.mxgraph.mxImageCanvas.Scale
getset

◆ Translate

Point com.mxgraph.mxImageCanvas.Translate
getset

The documentation for this class was generated from the following file: