| Package | graphics.drawing |
| Class | public class ScalePen |
| Inheritance | ScalePen Pen flash.utils.Proxy |
Note : In this pen the fill and line styles properties are not used.
| Property | Defined By | ||
|---|---|---|---|
![]() | align : uint
Determinates the align value of the pen. | Pen | |
| bitmapData : BitmapData
Determinates the BitmapData reference of the pen. | ScalePen | ||
![]() | fill : IFillStyle
Determinates the fill style object of the pen. | Pen | |
![]() | graphics : *
Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur. | Pen | |
| height : Number
Indicates the height value of the pen. | ScalePen | ||
| inner : Rectangle
Indicates the inner scale nine area of the pen. | ScalePen | ||
| keepAspectRatio : Boolean
Indicates if the pen keep the aspect ratio. | ScalePen | ||
![]() | line : ILineStyle
Determinates the line style object of the pen. | Pen | |
| outer : Rectangle
Indicates the outer scale nine area of the pen. | ScalePen | ||
| smoothing : Boolean = true
Indicates whether or not use pixel smoothing render. | ScalePen | ||
![]() | useClear : Boolean = true
Indicates if the clear() method is invoked at the end of the draw method. | Pen | |
![]() | useEndFill : Boolean = true
Indicates if the endFill() method is invoked at the end of the draw method. | Pen | |
| width : Number
Determinates the width of the pen. | ScalePen | ||
| Method | Defined By | ||
|---|---|---|---|
ScalePen(graphics:* = null, bitmapData:BitmapData = null, width:Number, height:Number, inner:Rectangle = null, outer:Rectangle = null)
Creates a new ScalePen instance. | ScalePen | ||
![]() | BF(... arguments):void
Defines a shortcut reference to used the beginBitmapFill method. | Pen | |
![]() | C(... arguments):void
Defines a shortcut reference to used the curveTo method. | Pen | |
![]() | CL():void
Defines a shortcut reference to used the clear method. | Pen | |
draw(... args):void [override]
Draws the shape and scale it. | ScalePen | ||
drawShape():void [override]
This method contains the basic drawing shape algorithm. | ScalePen | ||
![]() | EF():void
Defines a shortcut reference to used the endFill method. | Pen | |
![]() | F(... arguments):void
Defines a shortcut reference to used the beginFill method. | Pen | |
![]() | GF(... arguments):void
Defines a shortcut reference to used the beginGradientFill method. | Pen | |
![]() | GS(... arguments):void
Defines a shortcut reference to used the lineGradientStyle method. | Pen | |
![]() | L(... arguments):void
Defines a shortcut reference to used the lineTo method. | Pen | |
![]() | M(... arguments):void
Defines a shortcut reference to used the moveTo method. | Pen | |
![]() | S(... arguments):void
Defines a shortcut reference to used the lineStyle method. | Pen | |
setSize(width:Number = 0, height:Number = 0):void
Sets the width and height properties of the pen. | ScalePen | ||
setup(bitmap:BitmapData = null, width:Number, height:Number, inner:Rectangle = null, outer:Rectangle = null):void
Sets the pen options to defined all values to draw the shape. | ScalePen | ||
| bitmapData | property |
bitmapData:BitmapDataDeterminates the BitmapData reference of the pen.
public function get bitmapData():BitmapData public function set bitmapData(value:BitmapData):void| height | property |
height:NumberIndicates the height value of the pen.
public function get height():Number public function set height(value:Number):void| inner | property |
inner:RectangleIndicates the inner scale nine area of the pen.
public function get inner():Rectangle public function set inner(value:Rectangle):void| keepAspectRatio | property |
keepAspectRatio:BooleanIndicates if the pen keep the aspect ratio.
public function get keepAspectRatio():Boolean public function set keepAspectRatio(value:Boolean):void| outer | property |
outer:RectangleIndicates the outer scale nine area of the pen.
public function get outer():Rectangle public function set outer(value:Rectangle):void| smoothing | property |
public var smoothing:Boolean = trueIndicates whether or not use pixel smoothing render.
| width | property |
width:NumberDeterminates the width of the pen.
public function get width():Number public function set width(value:Number):void| ScalePen | () | Constructor |
public function ScalePen(graphics:* = null, bitmapData:BitmapData = null, width:Number, height:Number, inner:Rectangle = null, outer:Rectangle = null)Creates a new ScalePen instance.
Parametersgraphics:* (default = null) — The Graphics reference to control with this helper. You can passed-in a Shape or Sprite/MovieClip reference in argument.
| |
bitmapData:BitmapData (default = null) | |
width:Number (default = NaN) | |
height:Number (default = NaN) | |
inner:Rectangle (default = null) | |
outer:Rectangle (default = null) |
| draw | () | method |
override public function draw(... args):voidDraws the shape and scale it.
Parameters
... args |
| drawShape | () | method |
override public function drawShape():voidThis method contains the basic drawing shape algorithm.
| setSize | () | method |
public function setSize(width:Number = 0, height:Number = 0):voidSets the width and height properties of the pen.
Parameters
width:Number (default = 0) | |
height:Number (default = 0) |
| setup | () | method |
public function setup(bitmap:BitmapData = null, width:Number, height:Number, inner:Rectangle = null, outer:Rectangle = null):voidSets the pen options to defined all values to draw the shape.
Parameters
bitmap:BitmapData (default = null) | |
width:Number (default = NaN) | |
height:Number (default = NaN) | |
inner:Rectangle (default = null) | |
outer:Rectangle (default = null) |