Class Kinetic.Image
Extends
Kinetic.Shape.
Defined in: kinetic.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Kinetic.Image(config)
Image constructor
|
Method Attributes | Method Name and Description |
---|---|
getCrop()
return cropping
|
|
get height
|
|
getImage()
get image
|
|
getSize()
return image size
|
|
getWidth()
get width
|
|
setCrop(crop)
set cropping
|
|
setHeight(height)
set height
|
|
setImage(image)
set image
|
|
setSize(width, height)
set width and height
|
|
setWidth(width)
set width
|
- Methods borrowed from class Kinetic.Shape:
- applyLineJoin, clearData, fillStroke, getCanvas, getContext, getFill, getLineJoin, getStroke, getStrokeWidth, intersects, saveData, setDrawFunc, setFill, setLineJoin, setStroke, setStrokeWidth, stroke
- Methods borrowed from class Kinetic.Node:
- draggable, getAbsoluteAlpha, getAbsolutePosition, getAbsoluteTransform, getAbsoluteZIndex, getAlpha, getAttrs, getCenterOffset, getDetectionType, getDragBounds, getDragConstraint, getLayer, getLevel, getName, getParent, getPosition, getRotation, getRotationDeg, getScale, getStage, getTransform, getX, getY, getZIndex, hide, isDragging, isVisible, listen, move, moveDown, moveTo, moveToBottom, moveToTop, moveUp, off, on, rotate, rotateDeg, setAbsolutePosition, setAlpha, setAttrs, setCenterOffset, setDefaultAttrs, setDetectionType, setDragBounds, setDragConstraint, setPosition, setRotation, setRotationDeg, setScale, setX, setY, setZIndex, show, transitionTo
Method Detail
getCrop()
return cropping
getHeight()
get height
getImage()
get image
getSize()
return image size
getWidth()
get width
setCrop(crop)
set cropping
- Parameters:
- {Object} crop
- {Number} crop.x Optional
- crop x
- {Number} crop.y Optional
- crop y
- {Number} crop.width Optional
- crop width
- {Number} crop.height Optional
- crop height
setHeight(height)
set height
- Parameters:
- {Number} height
setImage(image)
set image
- Parameters:
- {ImageObject} image
setSize(width, height)
set width and height
- Parameters:
- {Number} width
- {Number} height
setWidth(width)
set width
- Parameters:
- {Number} width