API  0.9.10
CGContextCanvas.j File Reference

Go to the source code of this file.

Functions

function CGBitmapGraphicsContextCreate ()
 
function CGContextDrawImage (aContext, aRect, anImage)
 
function CGContextDrawLinearGradient (aContext, aGradient, aStartPoint, anEndPoint, options)
 
function CGContextDrawRadialGradient (aContext, aGradient, aStartCenter, aStartRadius, anEndCenter, anEndRadius, options)
 
function eigen (anAffineTransform)
 
 if (CPFeatureIsCompatible(CPJavaScriptCanvasTransformFeature))
 
function to_string (aColor)
 

Variables

var CANVAS_COMPOSITE_TABLE
 
var CANVAS_LINECAP_TABLE = [ "butt", "round", "square" ]
 
var CANVAS_LINEJOIN_TABLE = [ "miter", "round", "bevel" ]
 
 else
 
var hasPath
 
var rotate_scale
 

Function Documentation

◆ CGBitmapGraphicsContextCreate()

function CGBitmapGraphicsContextCreate ( )

Definition at line 623 of file CGContextCanvas.j.

◆ CGContextDrawImage()

function CGContextDrawImage ( aContext  ,
aRect  ,
anImage   
)

Definition at line 584 of file CGContextCanvas.j.

◆ CGContextDrawLinearGradient()

function CGContextDrawLinearGradient ( aContext  ,
aGradient  ,
aStartPoint  ,
anEndPoint  ,
options   
)

Definition at line 595 of file CGContextCanvas.j.

◆ CGContextDrawRadialGradient()

function CGContextDrawRadialGradient ( aContext  ,
aGradient  ,
aStartCenter  ,
aStartRadius  ,
anEndCenter  ,
anEndRadius  ,
options   
)

Definition at line 609 of file CGContextCanvas.j.

◆ eigen()

function eigen ( anAffineTransform  )

Definition at line 498 of file CGContextCanvas.j.

◆ if()

◆ to_string()

function to_string ( aColor  )

Definition at line 590 of file CGContextCanvas.j.

Variable Documentation

◆ CANVAS_COMPOSITE_TABLE

var CANVAS_COMPOSITE_TABLE
Initial value:
= [ "source-over", "source-over", "source-over", "source-over", "darker",
"lighter", "source-over", "source-over", "source-over", "source-over",
"source-over", "source-over", "source-over", "source-over", "source-over",
"source-over", "source-over",
"copy", "source-in", "source-out", "source-atop",
"destination-over", "destination-in", "destination-out", "destination-atop",
"xor", "source-over", "source-over" ]

Definition at line 25 of file CGContextCanvas.j.

◆ CANVAS_LINECAP_TABLE

var CANVAS_LINECAP_TABLE = [ "butt", "round", "square" ]

Definition at line 23 of file CGContextCanvas.j.

◆ CANVAS_LINEJOIN_TABLE

var CANVAS_LINEJOIN_TABLE = [ "miter", "round", "bevel" ]

Definition at line 24 of file CGContextCanvas.j.

◆ else

else

Definition at line 514 of file CGContextCanvas.j.

◆ hasPath

var hasPath

Definition at line 48 of file CGContextCanvas.j.

◆ rotate_scale

var rotate_scale
Initial value:
= function(a, b, c, d)
{
var sign = (a * d < 0.0 || b * c > 0.0) ? -1.0 : 1.0,
a1 = (ATAN2(sign * b, sign * a) + ATAN2(-c, d)) / 2.0,
cos = COS(a1),
sin = SIN(a1);
if (cos === 0)
{
sx = b / sin;
sy = -c / sin;
}
else if (sin === 0)
{
sx = a / cos;
sy = d / cos;
}
else
{
abs_cos = ABS(cos);
abs_sin = ABS(sin);
sx = (abs_cos * a / cos + abs_sin * b / sin) / (abs_cos + abs_sin);
sy = (abs_cos * d / cos + abs_sin * -c / sin) / (abs_cos + abs_sin);
}
}

Definition at line 471 of file CGContextCanvas.j.