ImageNode

class ImageNode(image: ColorBuffer, x: Double, y: Double, width: Double, height: Double) : CompositionNode

a CompositionNode that holds a single image ColorBuffer

Constructors

ImageNode
Link copied to clipboard
common
fun ImageNode(image: ColorBuffer, x: Double, y: Double, width: Double, height: Double)

Properties

attributes
Link copied to clipboard
common
var attributes: MutableMap<String, String?>

Custom attributes to be applied to the Node in addition to the Style attributes.

bounds
Link copied to clipboard
common
open override val bounds: Rectangle

a Rectangle that describes the bounding box of the contents

effectiveDisplay
Link copied to clipboard
common
val effectiveDisplay: Boolean
effectiveFill
Link copied to clipboard
common
val effectiveFill: ColorRGBa?
effectiveFillOpacity
Link copied to clipboard
common
val effectiveFillOpacity: Double
effectiveLineCap
Link copied to clipboard
common
val effectiveLineCap: LineCap
effectiveLineJoin
Link copied to clipboard
common
val effectiveLineJoin: LineJoin
effectiveMiterLimit
Link copied to clipboard
common
val effectiveMiterLimit: Double
effectiveOpacity
Link copied to clipboard
common
val effectiveOpacity: Double
effectiveShadeStyle
Link copied to clipboard
common
val effectiveShadeStyle: ShadeStyle
effectiveStroke
Link copied to clipboard
common
val effectiveStroke: ColorRGBa?
effectiveStrokeOpacity
Link copied to clipboard
common
val effectiveStrokeOpacity: Double
effectiveStrokeWeight
Link copied to clipboard
common
val effectiveStrokeWeight: Double
effectiveStyle
Link copied to clipboard
common
val effectiveStyle: Style

This CompositionNode's computed style. Where every style attribute is obtained by overwriting the Style in the following order:

effectiveTransform
Link copied to clipboard
common
val effectiveTransform: Matrix44

Calculates the absolute transformation of the current node.

effectiveVisibility
Link copied to clipboard
common
val effectiveVisibility: Boolean
fill
Link copied to clipboard
common
var fill: ColorRGBa?
fillOpacity
Link copied to clipboard
common
var fillOpacity: Double
height
Link copied to clipboard
common
var height: Double
id
Link copied to clipboard
common
var id: String? = null
image
Link copied to clipboard
common
var image: ColorBuffer
lineCap
Link copied to clipboard
common
var lineCap: LineCap
lineJoin
Link copied to clipboard
common
var lineJoin: LineJoin
miterLimit
Link copied to clipboard
common
var miterLimit: Double
opacity
Link copied to clipboard
common
var opacity: Double
parent
Link copied to clipboard
common
var parent: CompositionNode? = null
shadeStyle
Link copied to clipboard
common
var shadeStyle: ShadeStyle
stroke
Link copied to clipboard
common
var stroke: ColorRGBa?
strokeOpacity
Link copied to clipboard
common
var strokeOpacity: Double
strokeWeight
Link copied to clipboard
common
var strokeWeight: Double
style
Link copied to clipboard
common
var style: Style

This CompositionNode's own style.

transform
Link copied to clipboard
common
var transform: Matrix44
userData
Link copied to clipboard
common
val userData: MutableMap<String, Any>

a map that stores user data

width
Link copied to clipboard
common
var width: Double
x
Link copied to clipboard
common
var x: Double
y
Link copied to clipboard
common
var y: Double